@artsy/dupe-report-plugin
v0.41.1
Published
The webpack plugin for dupe-report
Keywords
Readme
@artsy/dupe-report-plugin
A webpack plugin (currently building off of inspectpack) that generates a duplicates report for every build. This report is intended to be used with @artsy/dupe-report for the purposes of communicating when new duplicates are shipped in your production js bundles.
Installation
yarn add --dev @artsy/dupe-report-pluginUsage
In your webpack.config.js file
const { DuplicateReportPlugin } = require("@artsy/dupe-report-plugin");
module.exports = {
//...
plugins: [
new DuplicateReportPlugin(options)
]
}Options
| Option Key | Type | Default Value |
| ----------- | ------ | ---------------------------------------- |
| directory | String | path.join(process.cwd(), ".artifacts") |
| fileName | String | "duplicates-report" |
