Page 1 of 1

laravel source map error 404

Posted: Mon Mar 16, 2020 7:52 pm
by Administrator
If you are seeing the error, source map error 404 within the browsers console and you are using webpack within your project. The best and easiest way to remove this message is to add .sourceMaps() to the webpack configuration file.

this also works with react.

Code: Select all

mix.react('resources/js/app.js', 'public/js').sourceMaps()
   .sass('resources/sass/admin/app.scss', 'public/css/admin/app.css')
   .sass('resources/sass/app.scss', 'public/css/app.css');