This package has been deprecated

Author message:

this package has been deprecated

webpack-archiver-plugin

0.0.3 • Public • Published

webpack-archiver-plugin

Webpack plugin to create archives of emitted files.

NPM Version NPM Downloads 996ICU license

Installation

npm install --save-dev webpack-archiver-plugin

Usage

webpack.config.js:

const ArchiverPlugin = require('webpack-archiver-plugin');

module.exports = {
  // configuration
  output: {
    path: '/dist',
  },
  plugins: [
    new ArchiverPlugin({
      name: 'dist',
      ext: '.tar',
    }),
  ],
}

Will create a archive in the same directory as output.path (__dirname in the example), ${output.path}.tar.gz contains all compiled assets.

Options

You can pass options when constructing a new plugin, for example ArchivePlugin(options).

The options object supports the following properties:

  • name: string -> Output name of archives (without extension)
  • ext: string -> A different extension to use instead of ``.tar, .tar.gz` or `zip`

If options is a string, this is eqiuvalent to passing {output: options}.

License

MIT with 996ICU

Package Sidebar

Install

npm i webpack-archiver-plugin

Weekly Downloads

1

Version

0.0.3

License

SEE LICENSE IN <https://github.com/996icu/996.ICU/blob/master/licenses%5BWIP%5D/LICENSE.996icu.zh-hans>

Unpacked Size

5.56 kB

Total Files

3

Last publish

Collaborators

  • givingwu