Skip to content

Commit

Permalink
Rename gulp task: webpack:watch → watch` and also monitor subdirect…
Browse files Browse the repository at this point in the history
…ories
  • Loading branch information
parisk committed Feb 6, 2018
1 parent d0f45fe commit 182426d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: npm start
webpack: npm run webpack:watch
webpack: npm run watch
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"prepublish": "npm run build",
"coveralls": "gulp coveralls",
"webpack": "gulp webpack",
"webpack:watch": "gulp webpack:watch"
"watch": "gulp watch"
},
"dependencies": {}
}

0 comments on commit 182426d

Please sign in to comment.