mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-19 19:30:32 +03:00
separate uglify from dev build
This commit is contained in:
parent
da019894be
commit
99fc52d7de
|
@ -22,7 +22,16 @@ gulp.task('build', function (callback) {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('bundle', ['bundleSfx', 'concatDeps', 'uglify']);
|
gulp.task('buildDev', function (callback) {
|
||||||
|
return runSequence(
|
||||||
|
'clean',
|
||||||
|
'bundle',
|
||||||
|
callback
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
gulp.task('bundle', ['bundleSfx', 'concatDeps']);
|
||||||
gulp.task('bundleProd', ['bundle', 'uglify']);
|
gulp.task('bundleProd', ['bundle', 'uglify']);
|
||||||
|
|
||||||
gulp.task('inlineTemplates', ['sass'], function() {
|
gulp.task('inlineTemplates', ['sass'], function() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ function changed(event) {
|
||||||
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
|
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('watch', ['build'], function () {
|
gulp.task('watch', ['buildDev'], function () {
|
||||||
gulp.watch([ paths.source ], [ 'bundle', 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.html ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||||
gulp.watch([ paths.scss ], [ 'bundle', browserSync.reload]).on('change', changed);
|
gulp.watch([ paths.scss ], [ 'bundle', browserSync.reload]).on('change', changed);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user