Rename gulp task: webpack:watch → watch` and also monitor subdirectories

This commit is contained in:
Paris Kasidiaris
2018-02-06 10:28:34 +02:00
parent d0f45fee25
commit 182426dd0f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
web: npm start
webpack: npm run webpack:watch
webpack: npm run watch
+2 -2
View File
@@ -192,8 +192,8 @@ gulp.task('webpack', ['build'], function() {
.pipe(gulp.dest('demo/dist/'));
});
gulp.task('webpack:watch', ['webpack'], () => {
gulp.watch('./src/*', ['webpack']);
gulp.task('watch', ['webpack'], () => {
gulp.watch(['./src/*', './src/**/*'], ['webpack']);
});
/**
+1 -1
View File
@@ -86,7 +86,7 @@
"prepublish": "npm run build",
"coveralls": "gulp coveralls",
"webpack": "gulp webpack",
"webpack:watch": "gulp webpack:watch"
"watch": "gulp watch"
},
"dependencies": {}
}