Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Use static mode for bundle analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Apr 15, 2019
1 parent d695129 commit b7a534b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion create-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ function getBabelConfig(options) {

function bundleAnalyzerPlugin() {
const {BundleAnalyzerPlugin} = require("webpack-bundle-analyzer");
return new BundleAnalyzerPlugin();
return new BundleAnalyzerPlugin({
analyzerMode: "static",
reportFilename: "bundle-report.html",
});
}

function htmlWebpackPlugin(options) {
Expand Down

0 comments on commit b7a534b

Please sign in to comment.