Last active
August 29, 2015 14:21
-
-
Save mealeyst/3f5063f02c9c49a81384 to your computer and use it in GitHub Desktop.
Gulpfile for Wordpress Theme
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'), | |
map = require('gulp-sourcemaps'), | |
library = 'library'; | |
gulp.task('styles:compile', function(){ | |
return gulp.src(library+'/scss/**/*.scss') | |
.pipe(map.init()) | |
.pipe(sass({ | |
errLogToConsole: true, | |
})) | |
.pipe(map.write()) | |
.pipe(gulp.dest(library+'/css')); | |
}); | |
//This works now | |
gulp.task('watch', ['compile'], function(){ | |
gulp.watch(library+'/scss/**/*.scss', ['styles:compile']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment