I'm building a Front-End with React and embedded a number of components.
Running gulp watch and browserifying already takes up to 12 seconds and it's getting worse and worse.
Okay, by checking Elixir's Config.js file, I found out that watchify already is included:
You can enable it in your gulpfile.js or elixir.json in the root directory.
opts.paths is an array of directories that browserify searches when looking for modules which are not referenced using relative path. Can be absolute or relative to basedir.
I'm just telling browserify to also look into the node_modules directory when importing components.
do you use homestead with nfs? If so, you have to enable polling in the watchify options.
Second: As you pass individual options to your browserify task, I get the impression, that the watchify options are not applied correctly. Try the following after enabling watchify.