Skip to content

Instantly share code, notes, and snippets.

@bastienrobert
Created October 1, 2017 11:28
Show Gist options
  • Save bastienrobert/5c444dc83212969da71aeadd28b199d6 to your computer and use it in GitHub Desktop.
Save bastienrobert/5c444dc83212969da71aeadd28b199d6 to your computer and use it in GitHub Desktop.
Gulpfile using SASS and SASS-GLOB (from /scss to /css)
'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