High use of the cpu with gulp watch in laravel

0

Good afternoon. How can I avoid using 50% of my cpu when using gulp watch with webpack or browserify in Laravel? : / addition browserSync is not working, the pages are not updated and there are errors in the chrome console.

elixir(function(mix) {

  //mix.browserSync();

  mix.copy(
    'node_modules/bootstrap-sass/assets/javascripts/bootstrap.js',
    'resources/assets/js/elixir_copy_cache')
  .copy(
    'node_modules/sweetalert/dist/sweetalert-dev.js',
    'resources/assets/js/elixir_copy_cache')
  .copy(
    'node_modules/materialize-css/dist/js/materialize.js',
    'resources/assets/js/elixir_copy_cache');

  mix.sass('app.scss');

  mix.webpack([
    'app.js',
    'articles.js'
  ]);

});
    
asked by david grinstein 21.09.2016 в 19:39
source

0 answers