Created
February 11, 2016 23:28
-
-
Save chris-muller/9ce22499a8713e71a646 to your computer and use it in GitHub Desktop.
Default Sass Gulpfile Template
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
//Modules | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
//File Paths | |
var scssFilePath = "./Path/To/scss/**/*.scss"; | |
var cssOutputPath = "./Path/To/css"; | |
// Sass Build Task | |
gulp.task('css', function(){ | |
gulp.src([scssFilePath]) | |
.pipe(sass({ | |
style: 'expanded' | |
})) | |
.pipe(gulp.dest(cssOutputPath)); | |
}); | |
gulp.task('watch',function(){ | |
gulp.watch(scssFilePath,['css']); | |
}); | |
gulp.task('default',['watch']); |
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
{ | |
"name": "Template Sass Gulpfile", | |
"version": "0.0.0", | |
"devDependencies": { | |
"gulp": "^3.8.10", | |
"gulp-sass": "^1.3.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment