| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Webpack plugin to create archives of emitted files.
npm install --save-dev webpack-archive-plugin
webpack.config.js:
let ArchivePlugin = require('webpack-archive-plugin');
module.exports = {
// configuration
output: {
path: __dirname + '/dist',
},
plugins: [
new ArchivePlugin(),
],
}Will create two archives in the same directory as output.path (__dirname in the example), ${output.path}.tar.gz and ${output.path}.zip containing all compiled assets.
You can pass options when constructing a new plugin, for example ArchivePlugin(options).
The options object supports the following properties:
If options is a string, this is eqiuvalent to passing {output: options}.
| Back | FazBrowse Home | New Git URL |