Skip to content

Instantly share code, notes, and snippets.

@joostvanveen
Created August 9, 2017 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostvanveen/dc5e1cc4e73df326923338d252858e70 to your computer and use it in GitHub Desktop.
Save joostvanveen/dc5e1cc4e73df326923338d252858e70 to your computer and use it in GitHub Desktop.
Default Accent Interactive Gulpfile for Wordpress
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