mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 01:53:44 +03:00
fix watch task
This commit is contained in:
parent
211cf2c38a
commit
e9c32993a7
|
@ -6,9 +6,9 @@ function changed(event) {
|
|||
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
|
||||
}
|
||||
|
||||
gulp.task('watch', ['bundle'], function () {
|
||||
gulp.watch([ paths.source ], [ 'bundle', browserSync.reload ]).on('change', changed);
|
||||
gulp.watch([ paths.html ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.css ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||
gulp.task('watch', ['build'], function () {
|
||||
gulp.watch([ paths.source ], [ 'build', browserSync.reload ]).on('change', changed);
|
||||
gulp.watch([ paths.html ], [ 'build', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.css ], [ 'build', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user