webpack / webpack-with-common-libs

webpack with some common libraries
MIT License
339 stars 104 forks source link

How to trigger live reload? #4

Open lmartins opened 10 years ago

lmartins commented 10 years ago

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
        }));
    });

});