2018-02-26 16:52:34 +05:30
|
|
|
--- a/config/webpack.config.js
|
|
|
|
+++ b/config/webpack.config.js
|
2018-05-09 12:38:34 +05:30
|
|
|
@@ -7,7 +7,6 @@
|
2018-03-27 20:24:05 +05:30
|
|
|
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');
|
2018-02-26 16:52:34 +05:30
|
|
|
|
2018-03-27 20:24:05 +05:30
|
|
|
const ROOT_PATH = '/usr/share/gitlab';
|
2018-05-09 12:38:34 +05:30
|
|
|
@@ -322,16 +321,4 @@
|
2018-02-26 16:52:34 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-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;
|