Created
February 12, 2022 14:24
-
-
Save NikhilNanjappa/9500640816df3c6877491c83652669b6 to your computer and use it in GitHub Desktop.
GDS Demo gulpfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gulp = require('gulp') | |
const sass = require('gulp-sass') | |
const compileStyles = () => { | |
return gulp.src([ | |
'app/assets/sass/**/*.scss' | |
]) | |
.pipe(sass()) | |
.pipe(gulp.dest('public/css/')) | |
.on('error', (err) => { | |
console.log(err) | |
process.exit(1) | |
}) | |
} | |
const watch = () => { | |
gulp.watch('app/assets/sass/**/*.scss', compileStyles) | |
} | |
gulp.task('build', gulp.series(compileStyles)) | |
gulp.task('default', gulp.series(watch)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment