build(ui): enable bundle analysis by default
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: [
