Created
August 7, 2017 03:05
-
-
Save ericjgruber/4413e5beb62f238ec9600613c0d17e03 to your computer and use it in GitHub Desktop.
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'); | |
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