ZIP compress files
$ npm install --save-dev gulp-zip
const gulp = require('gulp');
const zip = require('gulp-zip');
gulp.task('default', () => {
return gulp.src('src/*')
.pipe(zip('archive.zip'))
.pipe(gulp.dest('dist'));
});
Supports streaming mode.
Type: string
Type: boolean
Default: true
MIT © Sindre Sorhus