27 lines
888 B
Diff
27 lines
888 B
Diff
--- a/config/webpack.config.js
|
|
+++ b/config/webpack.config.js
|
|
@@ -9,7 +9,6 @@
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
const NameAllModulesPlugin = require('name-all-modules-plugin');
|
|
-const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
|
|
|
|
const ROOT_PATH = '/usr/share/gitlab';
|
|
@@ -316,16 +315,4 @@
|
|
}
|
|
}
|
|
|
|
-if (WEBPACK_REPORT) {
|
|
- config.plugins.push(
|
|
- new BundleAnalyzerPlugin({
|
|
- analyzerMode: 'static',
|
|
- generateStatsFile: true,
|
|
- openAnalyzer: false,
|
|
- reportFilename: path.join(ROOT_PATH, 'webpack-report/index.html'),
|
|
- statsFilename: path.join(ROOT_PATH, 'webpack-report/stats.json'),
|
|
- })
|
|
- );
|
|
-}
|
|
-
|
|
module.exports = config;
|