Skip to content

Commit 462c12b

Browse files
committed
gulp: add watch-pages
1 parent 960f50a commit 462c12b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

gulpfile.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ gulp.task('watch', [
169169
'watch-bin',
170170
'watch-lib',
171171
'watch-server',
172-
'watch-client'
172+
'watch-client',
173+
'watch-pages'
173174
])
174175

175176
gulp.task('watch-bin', () => {
@@ -198,6 +199,12 @@ gulp.task('watch-client', () => {
198199
])
199200
})
200201

202+
gulp.task('watch-pages', () => {
203+
return gulp.watch('pages/**/*.js', [
204+
'copy-pages'
205+
])
206+
})
207+
201208
gulp.task('clean', () => {
202209
return del('dist')
203210
})

0 commit comments

Comments
 (0)