Closed rzb closed 7 years ago
watch
task. If you can reproduce infinite loop even when you don't use gulp-htmlmin, this is an issue with elixir.Task#watch
.@rzb also it looks like your src and dest paths are the same. Since gulp-htmlmin
changes the files, watch
will trigger.
@doowb Yeah, I noticed that in the following morning with some coffee and have procrastinated since then.
I had copied that snippet directly from this laravel package repo, which is a server side solution to the same problem. So for those who end up here for the same reason:
Replace
.watch('./storage/framework/views/*');
With
.watch('./resources/views/**/*.blade.php');
After implementing gulp-htmlmin, gulp watch goes into an endless loop for me.
I'm on Laravel (elixir sits on top of gulp).