Created
October 1, 2017 11:28
-
-
Save bastienrobert/5c444dc83212969da71aeadd28b199d6 to your computer and use it in GitHub Desktop.
Gulpfile using SASS and SASS-GLOB (from /scss to /css)
This file contains 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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sassGlob = require('gulp-sass-glob'); | |
gulp.task('scss', function () { | |
return gulp.src('./scss/app.scss') | |
.pipe(sassGlob()) | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('./css')); | |
}); | |
gulp.task('scss:watch', function () { | |
gulp.watch('./scss/**/*.scss', ['scss']); | |
}); | |
gulp.task('default', ['scss:watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment