问题 I want to get one env variable data in my scss file by using mix in Laravel. How to get that? I have used something like this. But this one is a URL, so, it is not getting. mix.sass('resources/assets/sass/main-v2.scss', 'public/css', { data: `awsUrl: "${(process.env.MIX_AWS_S3_CDN)}" ;` }) 回答1: There is a simple way to do it. Follow steps as below, Correct me if wrong, you want to pass an URL to main-v2.scss file as a variable. Add a variable in your .env file as below, MIX_AWS_URL='https:/