[Vuejs]-Fresh Laravel 5.4 Project, webpack not working

0👍

Weird that nobody found a solution.

I found something a bit janky, but it definitely does the job.
Find the file DirectoryWatcher.js located in /node_modules/webpack/lib/.

On line 57, replace the ignored option with ignored: /node_modules/,.
This means that any ignored option you initially pass through will get overwritten, but if I knew how to pass them in the right way, I wouldn’t be doing it like this.

It still works fine. CPU usage is down and compilation time is reduced greatly.

Leave a comment