layui-js/node_modules/gulp-zip
2017-08-21 08:50:25 +08:00
..
index.js clear 2017-08-21 08:50:25 +08:00
license clear 2017-08-21 08:50:25 +08:00
package.json clear 2017-08-21 08:50:25 +08:00
readme.md clear 2017-08-21 08:50:25 +08:00

gulp-zip Build Status

ZIP compress files

Install

$ npm install --save-dev gulp-zip

Usage

const gulp = require('gulp');
const zip = require('gulp-zip');

gulp.task('default', () =>
	gulp.src('src/*')
		.pipe(zip('archive.zip'))
		.pipe(gulp.dest('dist'))
);

API

Supports streaming mode.

zip(filename, [options])

filename

Type: string

options

Type: Object

compress

Type: boolean
Default: true

License

MIT © Sindre Sorhus