So Laravel made their new fancy wrapper for webpack called Laravel mix.
According to the docs, you compile the frontend files by running npm run watch
. The problem is that webpack doesn't detect any file changes. The only fix I've found is to add --watch-poll
to the watch
task config. The problem with that, is that:
it uses native file listeners to check for updates.
And the problem with that is that it uses like a 105% of your CPU. Do I really have to settle for this? Is there a smarter solution for this, or even a gulp equivalent task setup for Laravel's front-end files?
Haven't found an elegant way to do this with any gulp packages ( gulp-vueify just compiles components into js files ).
Thanks
EDIT:
Using Windows 10 and Laravel's Homestead ( NodeJS v6.9.0 )
via Filip Petrovic