-
-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Description
Rather than adding the plugin twice with e.g.:
[
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
reportFilename: 'webpack-report/index.html'),
}),
new BundleAnalyzerPlugin({
analyzerMode: 'json',
openAnalyzer: false,
reportFilename: 'webpack-report/index.json'),
}),
]
it would be nice to be able to generate JSON and HTML in one go, e.g.:
[
new BundleAnalyzerPlugin({
analyzerMode: "static",
openAnalyzer: false,
reportOutput: [
{ type: "json", fileName: "webpack-report/index.json" },
{ type: "html", fileName: "webpack-report/index.html" },
],
}),
];