Created
August 9, 2017 11:54
-
-
Save joostvanveen/dc5e1cc4e73df326923338d252858e70 to your computer and use it in GitHub Desktop.
Default Accent Interactive Gulpfile for Wordpress
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
plumber = require('gulp-plumber'), | |
livereload = require('gulp-livereload'); | |
/* jshint task would be here */ | |
gulp.task('build-css', function() { | |
return gulp.src('public_html/content/themes/THEMENAME/assets/styling/sass/*.scss') | |
.pipe(plumber()) | |
.pipe(sass({outputStyle: 'compressed'})) | |
.pipe(gulp.dest('public_html/content/themes/THEMENAME/assets/styling')) | |
.pipe(livereload()) | |
}); | |
/* updated watch task to include sass */ | |
gulp.task('watch', function() { | |
livereload.listen(); | |
gulp.watch('**/*.scss', ['build-css', 'build-css-showcase']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment