Macil / browserify-hmr

Hot Module Replacement plugin for Browserify
MIT License
374 stars 26 forks source link

Not working with browserSync #27

Open andredewaard opened 8 years ago

andredewaard commented 8 years ago

Getting this error with Browserify-hmr when saving a js file: [HMR] Error applying update TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'. Is not hot reloading the browser

This is my gulpfile:

var elixir = require('laravel-elixir');
var gutils = require('gulp-util');
var  b = elixir.config.js.browserify;

if(gutils.env._.indexOf('watch') > -1){
    b.plugins.push({
          name: "browserify-hmr",
          options : {}
    });
}

b.transformers.push({
    name: "vueify",
    options : {}
});

elixir(function(mix) {
    // mix.sass('app.scss');
    mix.browserify('main.js');
    mix.browserSync({
        files: [
            elixir.config.appPath + '/**/*.php',
            elixir.config.get('public.css.outputFolder') + '/**/*.css',
            elixir.config.get('public.versioning.buildFolder') + '/rev-manifest.json',
            'resources/views/**/*.php'
        ],
         proxy: 'tasklap.app',
    }).version(["public/css/all.css", "public/js/main.js"]);
});
gerardo-junior commented 8 years ago

+1

w0bbes commented 8 years ago

+1