gulp compile task watching

This commit is contained in:
tmshv committed 2016-03-18 05:38:14 +03:00
1 parent c27f093e2e
commit d3e6eb2659
1 file changed
+4 -1
+4 -1
View File
@@ -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'
},