Archive anything through gulp
var gulp = require('gulp');
var archiver = require('gulp-archiver');
gulp.task('default', function () {
return gulp.src('src/**')
.pipe(archiver('archive.zip'))
.pipe(gulp.dest('./dist'));
});
Plugin uses archiver npm package to make archive.
Required
Type: String
Result archive file name.
File extension is used to define archive type. Plugin supports only zip
and tar
archives.
Type: Object
Described in original archiver repository