Skip to content

Instantly share code, notes, and snippets.

@Akhigbe-E
Last active July 9, 2020 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akhigbe-E/8d9e036b0eb1c3e0673d263c2793e938 to your computer and use it in GitHub Desktop.
Save Akhigbe-E/8d9e036b0eb1c3e0673d263c2793e938 to your computer and use it in GitHub Desktop.
Run series
const gulp = require('gulp')
const sass = require('gulp-sass')
const transpileSassToCss = (cb) => {
return gulp.src(`src/sass/main.scss`)
.pipe(sass())
.pipe(gulp.dest(`src/css`))
}
const watchSassFile = () => {
return gulp.watch(['src/sass/**/*.scss'], transpileSassToCss)
}
const beingWatched = (cb) => {
console.log(`I am being watched`);
cb();
}
exports.default = gulp.series(beingWatched, watchSassFile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment