mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 03:53:43 +03:00
Serve task: fixed issue with reload
This commit is contained in:
parent
c7bc6ff391
commit
2d831f7a46
|
@ -7,7 +7,11 @@ gulp.task('serve', ['watch'], function (done) {
|
|||
notify: false,
|
||||
port: 9000,
|
||||
server: {
|
||||
baseDir: ['./demo', '.']
|
||||
}
|
||||
baseDir: './demo',
|
||||
routes: {
|
||||
'/dist': './dist'
|
||||
},
|
||||
},
|
||||
reloadDelay: 500
|
||||
}, done);
|
||||
});
|
||||
|
|
|
@ -7,8 +7,8 @@ function changed(event) {
|
|||
}
|
||||
|
||||
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.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.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user