Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var gzip = require('gulp-gzip'); //Add dependency to package.json if not added
gulp.task('gzip-app', function () {
gulp.src(['dist/prod/src/app/bundle.min.js'])
.pipe(gzip())
.pipe(gulp.dest('dist/prod/src/app'));
});
gulp.task('gzip-css', function () {
gulp.src(['dist/prod/src/assets/css/vendor.css'])
.pipe(gzip())
.pipe(gulp.dest('dist/prod/src/assets/css'));
});
gulp.task('gzip-vendorjs', function () {
gulp.src(['dist/prod/src/assets/js/*.*'])
.pipe(gzip())
.pipe(gulp.dest('dist/prod/src/assets/js'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment