Skip to content

Instantly share code, notes, and snippets.

@NikhilNanjappa
Created February 12, 2022 14:24
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 NikhilNanjappa/9500640816df3c6877491c83652669b6 to your computer and use it in GitHub Desktop.
Save NikhilNanjappa/9500640816df3c6877491c83652669b6 to your computer and use it in GitHub Desktop.
GDS Demo gulpfile.js
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