Created
September 2, 2016 15:11
-
-
Save musamamasood/11e3a03eddf36e3a73069415ac6d07a6 to your computer and use it in GitHub Desktop.
Compiles SCSS files into CSS
This file contains hidden or 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
/** | |
* 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