Skip to content

Instantly share code, notes, and snippets.

@ericjgruber
Created August 7, 2017 03:05
Show Gist options
  • Save ericjgruber/4413e5beb62f238ec9600613c0d17e03 to your computer and use it in GitHub Desktop.
Save ericjgruber/4413e5beb62f238ec9600613c0d17e03 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var sass = require('gulp-sass');
var shell = require('gulp-shell');
gulp.task('styles', function() {
gulp.src('scss/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('css/'));
});
//Watch task
gulp.task('default',function() {
gulp.watch('scss/**/*.scss',['styles']);
});
// Clear all caches
gulp.task('clear-css-js-cache', shell.task([
'drush cr all'
]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment