Socket
Socket
Sign inDemoInstall

webpack-archive-plugin-onpoint

Package Overview
Dependencies
44
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webpack-archive-plugin-onpoint

Webpack plugin to create archives of emitted files


Version published
Maintainers
1
Created

Readme

Source

webpack-archive-plugin

Webpack plugin to create archives of emitted files.

Installation

npm install --save-dev webpack-archive-plugin

Usage

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.

Options

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

The options object supports the following properties:

  • output: string -> Output location / name of archives (without extension)
  • format: string, array -> Archive formats to use, can be 'tar' or 'zip'
  • ext: string -> A different extension to use instead of tar.gz or zip (without leading .)

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

FAQs

Last updated on 15 Dec 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc