Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active October 20, 2017 13:51
Show Gist options
  • Save tommcfarlin/8f2d3146cba5c565ad1e5d51e09a221c to your computer and use it in GitHub Desktop.
Save tommcfarlin/8f2d3146cba5c565ad1e5d51e09a221c to your computer and use it in GitHub Desktop.
[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