debian-mirror-gitlab/debian/patches/remove-bundle-analyzer.patch

28 lines
876 B
Diff
Raw Normal View History

2018-02-26 16:52:34 +05:30
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
2018-03-18 12:27:51 +05:30
@@ -9,7 +9,6 @@
2018-02-26 16:52:34 +05:30
var CopyWebpackPlugin = require('copy-webpack-plugin');
var CompressionPlugin = require('compression-webpack-plugin');
var NameAllModulesPlugin = require('name-all-modules-plugin');
-var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
var ROOT_PATH = '/usr/share/gitlab';
2018-03-18 12:27:51 +05:30
@@ -393,16 +392,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;