create a new file webpack.mix.js in the root of the project
1
2
3
4
constmix=require('laravel-mix');mix.sass('scss/style.scss','css/style.css');mix.options({processCssUrls:false});if(!mix.inProduction()){mix.sourceMaps();}// Enable source maps for development
create a new file package.json in the root of the project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{"scripts":{"dev":"npm run development","development":"mix","watch":"mix watch","prod":"npm run production","production":"mix --production"},"dependencies":{"laravel-mix":"^6.0.49","sass":"^1.84.0","sass-loader":"^16.0.4"}}