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:
parent
960f50a019
commit
462c12ba06
|
@ -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')
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue