Skip to content

Commit

Permalink
switch to maintained bundle-analyzer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 6, 2019
1 parent e948b65 commit 8dceeae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"style-loader": "^1.0.0",
"url-loader": "^2.0.1",
"webpack": "^4.36.1",
"webpack-cli": "^3.3.6",
"webpack-visualizer-plugin": "^0.1.11"
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.6"
}
}
9 changes: 6 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require("path");
const webpack = require("webpack");
const Visualizer = require("webpack-visualizer-plugin");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;

const shimJS = path.resolve(__dirname, "src", "emptyshim.js");
function shim(regExp) {
Expand Down Expand Up @@ -44,8 +45,10 @@ module.exports = {
shim(/@jupyterlab\/codeeditor\/lib\/jsoneditor/),
shim(/@jupyterlab\/coreutils\/lib\/(time|settingregistry|.*menu.*)/),
shim(/@jupyterlab\/services\/lib\/(contents|terminal)\/.*/),
new Visualizer({
filename: "../webpack.stats.html",
new BundleAnalyzerPlugin({
analyzerMode: "static",
openAnalyzer: false,
reportFilename: "../webpack.stats.html",
}),
],
optimization: {},
Expand Down

0 comments on commit 8dceeae

Please sign in to comment.