Created
February 25, 2018 17:35
-
-
Save isaacdanielanderson/d262d5f54464ed1b7fb3b7f6274b778a to your computer and use it in GitHub Desktop.
Super basic Gulp-Sass process
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
//style paths | |
var sassFiles = './sass/**/*.scss', | |
cssDest = './'; | |
gulp.task('styles', function(){ | |
gulp.src(sassFiles) | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest(cssDest)); | |
}); | |
gulp.task('watch',function() { | |
gulp.watch(sassFiles,['styles']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment