refactor(build): make gulp pipeline more modular
This commit is contained in:
parent
166fc72b42
commit
900d46115e
@ -47,5 +47,8 @@ function copyImages() {
|
|||||||
.pipe(gulp.dest(`${destDir}/img`));
|
.pipe(gulp.dest(`${destDir}/img`));
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.default = compileSCSS;
|
exports.assets = copyImages;
|
||||||
exports.default = gulp.parallel(compileSCSS, gulp.series(compileTS, bundleJS), copyCSS, copyJS, copyImages);
|
exports.styles = gulp.parallel(compileSCSS, copyCSS);
|
||||||
|
exports.scripts = gulp.parallel(copyJS, gulp.series(compileTS, bundleJS));
|
||||||
|
|
||||||
|
exports.default = gulp.parallel(exports.styles, exports.scripts, exports.assets);
|
||||||
|
Loading…
Reference in New Issue
Block a user