Skip to content

Instantly share code, notes, and snippets.

@musamamasood
Created September 2, 2016 15:11
Show Gist options
  • Save musamamasood/11e3a03eddf36e3a73069415ac6d07a6 to your computer and use it in GitHub Desktop.
Save musamamasood/11e3a03eddf36e3a73069415ac6d07a6 to your computer and use it in GitHub Desktop.
Compiles SCSS files into CSS
/**
* Compiles SCSS files into CSS
*
* @src .scss files that do not start with _
* @dest .css files
*/
gulp.task('scss', function() {
return gulp.src(['scss/**/*.scss', '!scss/**/_*'])
.pipe(scss())
.pipe(gulp.dest('css'));
});
/**
* The default task that is run with the
* gulp command when not task is specified.
* The scss task is required to run before
* this one.
*/
gulp.task('default', ['scss'], function() {
gulp.watch('scss/**/*.scss', ['scss']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment