Socket
Socket
Sign inDemoInstall

dumpmeta-webpack-plugin

Package Overview
Dependencies
77
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dumpmeta-webpack-plugin

Save Webpack build metadata to a file


Version published
Weekly downloads
1.5K
decreased by-17.49%
Maintainers
1
Install size
15.3 MB
Created
Weekly downloads
 

Changelog

Source

[0.2.0] - 2020-11-15

Compatibility with Webpack 5

Readme

Source

Webpack Dump Metadata Plugin

Save Webpack build metadata to a file.

Install

npm install dumpmeta-webpack-plugin --save-dev

or

yarn add dumpmeta-webpack-plugin --dev

Usage

webpack.config.js:

const { DumpMetaPlugin } = require('dumpmeta-webpack-plugin');

module.exports = {
  ...

  plugins: [
    ...

    new DumpMetaPlugin({
      filename: 'dist/meta.json',
      prepare: stats => ({
        // add any other information you need to dump
        hash: stats.hash,
      })
    }),
  ]
}

Please refer to the Webpack documentation for all available properties of the Stats data.

Options

NameDescriptionDefault
filenamePath to the output file'meta.json'
prepareExtract properties from Webpack build metadata to save. These options should be serializable to JSON.stats => ({hash: stats.hash})

FAQs

Last updated on 15 Nov 2020

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