Skip to content

Commit 182426d

Browse files
committed
Rename gulp task: webpack:watch → watch` and also monitor subdirectories
1 parent d0f45fe commit 182426d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
web: npm start
2-
webpack: npm run webpack:watch
2+
webpack: npm run watch

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ gulp.task('webpack', ['build'], function() {
192192
.pipe(gulp.dest('demo/dist/'));
193193
});
194194

195-
gulp.task('webpack:watch', ['webpack'], () => {
196-
gulp.watch('./src/*', ['webpack']);
195+
gulp.task('watch', ['webpack'], () => {
196+
gulp.watch(['./src/*', './src/**/*'], ['webpack']);
197197
});
198198

199199
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"prepublish": "npm run build",
8787
"coveralls": "gulp coveralls",
8888
"webpack": "gulp webpack",
89-
"webpack:watch": "gulp webpack:watch"
89+
"watch": "gulp watch"
9090
},
9191
"dependencies": {}
9292
}

0 commit comments

Comments
 (0)