Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement