build(ui): enable bundle analysis by default
MODIFY
manager/ui/war/webpack.config.js
manager/ui/war/webpack.config.js
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
-const CopyPlugin = require("copy-webpack-plugin");
+const CopyPlugin = require('copy-webpack-plugin');
+const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = {
mode: 'development',
@@ -28,7 +29,8 @@ module.exports = {
},
}
],
- })
+ }),
+ new BundleAnalyzerPlugin()
],
module: {
rules: [

build(ui): enable bundle analysis by default