I use Laravel Mix - it's a flexible way to use webpack easily.
When running watch
it will recompile dev mode builds whenever the files change. However, in order to use these there's an external build step - e.g. one project needs to call drush cc css-js
.
Is there a way to do this from the webpack.mix.js
file or other?
Sort of like:
mix()
.js('src/app.js', 'dist/')
.vue()
.shell('drush cc css-js') // ««« something like this?
;
OR perhaps it has to go in the package.json
's .scripts
bit?