Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { src, dest, series, parallel, watch } = require('gulp');
- const sass = require("gulp-sass");
- function compileScss() {
- return src("scss/**/*.scss")
- .pipe(sass())
- .pipe(dest("css"));
- }
- function watchScss() {
- return watch('./scss/**/*.scss', compileScss);
- }
- exports.compile = series(compileScss);
- exports.watch = parallel(compileScss, watchScss);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement