Skip to content

Instantly share code, notes, and snippets.

@chris-muller
Created February 11, 2016 23:28
Show Gist options
  • Save chris-muller/9ce22499a8713e71a646 to your computer and use it in GitHub Desktop.
Save chris-muller/9ce22499a8713e71a646 to your computer and use it in GitHub Desktop.
Default Sass Gulpfile Template
//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']);
{
"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