diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 12a3774e..c606513e 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -69,13 +69,16 @@ gulp.task('copy robots.txt', () => { }); gulp.task('compile', () => { - gulp.src([ + const doWatch = !isProduction; + + return gulp.src([ './src/client/app.js', './src/client/instagram.js' ]) .pipe(named()) .pipe(webpack({ // devtool: 'inline-source-map', + watch: doWatch, output: { filename: '[name].js' },