Closed ishanvyas22 closed 4 years ago
For custom directories (other than assets), webpack.mix.js file's content generates invalid result on npm run dev command.
assets
webpack.mix.js
npm run dev
Current webpack.mix.js file content:
const mix = require('laravel-mix'); mix.setPublicPath('./webroot') .js('assets/js/app.js', 'webroot/js') .sass('assets/sass/app.sass', 'webroot/css') .version();
It should be:
const mix = require('laravel-mix'); mix.setPublicPath('./webroot') .js('resources/js/app.js', 'webroot/js') .sass('resources/sass/app.sass', 'webroot/css') .version();
Or whatever user has entered while generating custom directories
For custom directories (other than
assets
),webpack.mix.js
file's content generates invalid result onnpm run dev
command.Current
webpack.mix.js
file content:It should be:
Or whatever user has entered while generating custom directories