1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

gulp: add watch-pages

This commit is contained in:
nkzawa 2016-11-20 06:25:07 +09:00
parent 960f50a019
commit 462c12ba06

View file

@ -169,7 +169,8 @@ gulp.task('watch', [
'watch-bin',
'watch-lib',
'watch-server',
'watch-client'
'watch-client',
'watch-pages'
])
gulp.task('watch-bin', () => {
@ -198,6 +199,12 @@ gulp.task('watch-client', () => {
])
})
gulp.task('watch-pages', () => {
return gulp.watch('pages/**/*.js', [
'copy-pages'
])
})
gulp.task('clean', () => {
return del('dist')
})