Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

webpack-archiver-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-archiver-plugin

a archiver plugin for webpack

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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.gzorzip`

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

License

MIT with 996ICU

Keywords

webpack-archive

FAQs

Package last updated on 01 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts