When I run npm run watch
and update my source .js
and .scss
assets, the compilation is run automatically as expected. When I update the webpack.mix.js
file, the changes are NOT compiled automatically.
Is this something that v6 doesn't support? Because v5 did work as expected.
The config:
const mix = require('laravel-mix')
mix.js('resources/js/app.js', 'public/js')
.sass('resources/css/app.scss', 'public/css')
.version()
package.json
:
{
...
"scripts": {
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"production": "mix --production"
}
...
}