mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
Fix watch task
This commit is contained in:
parent
a8cd9e3c14
commit
dbd90b6c73
|
@ -27,6 +27,14 @@ gulp.task('build', function (callback) {
|
|||
);
|
||||
});
|
||||
|
||||
gulp.task('rebuild', function(done) {
|
||||
return runSequence(
|
||||
'bundle',
|
||||
'concatDeps',
|
||||
callback
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('inlineTemplates', ['sass'], function() {
|
||||
return gulp.src(paths.source, { base: './' })
|
||||
.pipe(replace(/'(.*?\.css)'/g, '\'.tmp/$1\''))
|
||||
|
|
|
@ -7,8 +7,8 @@ function changed(event) {
|
|||
}
|
||||
|
||||
gulp.task('watch', ['build'], function () {
|
||||
gulp.watch([ paths.source ], [ 'bundle', browserSync.reload ]).on('change', changed);
|
||||
gulp.watch([ paths.html ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.scss ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.source ], [ 'rebuild', browserSync.reload ]).on('change', changed);
|
||||
gulp.watch([ paths.html ], [ 'rebuild', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.scss ], [ 'rebuild', browserSync.reload]).on('change', changed);
|
||||
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user