webpack-with-common-libs icon indicating copy to clipboard operation
webpack-with-common-libs copied to clipboard

How to trigger live reload?

Open lmartins opened this issue 11 years ago • 0 comments

Usual gulp tasks pipe files allowing me to trigger a reload at the end. How could that be applied using the following snippet from your sample files:

gulp.task("webpack:build-dev", function() {
    // run webpack
    devCompiler.run(function(err, stats) {
        if(err) throw new gutil.PluginError("webpack:build-dev", err);
        gutil.log("[webpack:build-dev]", stats.toString({
            colors: true
        }));
    });

});

lmartins avatar May 24 '14 20:05 lmartins