laravel-elixir-vueify icon indicating copy to clipboard operation
laravel-elixir-vueify copied to clipboard

Watch

Open brianvoe opened this issue 9 years ago • 7 comments
trafficstars

I upgraded laravel elixir to verion 5 and watch doesnt process vue files on change. It does trigger a change but once done and it refreshes browser none of the vue file changes were updated.

I am buidling a single page app with vuejs router so there is only a single file input mix.browserify('admin/admin.js', 'public/js/admin/admin.js');

Im also using task find watch to watch and trigger vue file changes. elixir.Task.find("browserify").watch([ 'resources/assets//*.vue', 'resources/assets//*.js' ]);

Let me know if there is anything else i can do to help you recreate this issue.

Thanks.

brianvoe avatar Feb 17 '16 18:02 brianvoe

Reverted laravel elixir back to 4 and everything works again.

brianvoe avatar Feb 17 '16 18:02 brianvoe

It seems that very small changed aren't noticed.

stevenobird avatar Feb 18 '16 13:02 stevenobird

My experience has been:

  • Some modifications aren't noticed. If so, I quickly add a line, save, remove the line, save again. That makes the watch trigger.
  • If chaining multiple browserify calls together: You have to declare them like:
mix.browserify('script1.js')
   .browserify('script2.js');

patrick-hertling avatar Feb 26 '16 14:02 patrick-hertling

Watch doesn't work at all on Windows 10.

studiopersona avatar Apr 11 '16 16:04 studiopersona

PRs welcomed.

laracasts avatar Apr 11 '16 21:04 laracasts

experiencing this problem on my Windows 10, its actually annoying to add line save and remove line again.

ikristher avatar Jun 12 '16 13:06 ikristher

#5 @jonagoldman's answer worked for me

ikristher avatar Jun 15 '16 09:06 ikristher