Table of Contents
Installation
npm install archiver archiver-webpack-plugin --save-dev
Usage
Using the built-in Archiver instance
const ArchiverPlugin = ; moduleexports = plugins: format: "zip" formatOptions: zlib: level: 9 ;
Using a custom Archiver instance
const ArchiverPlugin = ;const archiver = ; const archive = ; moduleexports = plugins: archive ;
Arguments:
output
: The archive output path.test
: All assets matching this RegExp are processed. Defaults to every asset.format
: The archive format. Defaults to"zip"
.formatOptions
: The archive format options. Defaults to"{}"
.archive
: An Archiver instance. Defaults to the built-in instance.
API
See the detailed API Reference.
Author
Alexandre Breteau - @0xSeldszar
License
MIT © Alexandre Breteau