You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dumpmeta-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dumpmeta-webpack-plugin

Save Webpack build metadata to a file

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
3.2K
11.28%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 15 Nov 2020

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