sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

How to use the options configuration object #110

Closed gubbigubbi closed 5 years ago

gubbigubbi commented 5 years ago

Awesome gulp plugin! Could we add some examples of using the options object? I am happy to do a PR and update the documentation but I cant quite figure it out, for example the following doesnt seem to work:

.pipe(
            zip( 'kona-instagram-for-gutenberg.zip', {
                allowEmpty: true,
            } )
        )
        .pipe( gulp.dest( './' ) )
sindresorhus commented 5 years ago

There's no allowEmpty option. The supported options are documented in the readme. As for the docs, I think it's already clear enough how to use the options.