
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
webpack-files-archive-plugin
Advanced tools
Webpack 5 plugin to create archives of emitted files
Webpack 5 plugin to create archives of emitted files
npm install --save-dev webpack-files-archive-plugin
This is a fork of original plugin https://github.com/autochthe/webpack-archive-plugin. The current plugin only support Webpack 5. For Webpack 4 use original plugin.
webpack.config.js:
let WebpackFilesArchivePlugin = require('webpack-files-archive-plugin');
module.exports = {
// configuration
output: {
path: __dirname + '/dist',
},
plugins: [
new WebpackFilesArchivePlugin(),
],
}
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 new WebpackFilesArchivePlugin(options)
.
The options object supports the following properties:
output
Type: String
Default: output.path
Directory location of files to be archived.
format
Type: String|Array
Default: zip|tar.gz
Archive formats to use, can be 'tar'
or 'zip'
ext
Type: String
Default: zip|tar.gz
A different extension to use instead of tar.gz
or zip
(without leading .
)
FAQs
Webpack 5 plugin to create archives of emitted files
The npm package webpack-files-archive-plugin receives a total of 154 weekly downloads. As such, webpack-files-archive-plugin popularity was classified as not popular.
We found that webpack-files-archive-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.