Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-gulp-sass.js Secret
Last active Oct 20, 2017

Embed
What would you like to do?
[WordPress] A Few Gulp Packages for Starters
gulp.task('sass', function(){
return gulp.src('assets/styles/scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('assets/styles/css'))
});
gulp.task('minify-js', function () {
return gulp.src('assets/scripts/dev/*.js')
.pipe(uglify())
.pipe(gulp.dest('assets/scripts'));
});
gulp.task('image-optimization', function () {
return gulp.src('assets/images/*')
.pipe(imagemin())
.pipe(gulp.dest('assets/images'))
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.