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

29 lines
1.1 KiB
Diff
Raw Normal View History

2018-02-26 16:52:34 +05:30
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
2018-10-15 15:54:03 +05:30
@@ -5,7 +5,6 @@
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
2018-03-27 20:24:05 +05:30
const CompressionPlugin = require('compression-webpack-plugin');
2018-11-08 20:39:57 +05:30
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
2018-03-27 20:24:05 +05:30
-const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
2018-02-26 16:52:34 +05:30
2018-03-27 20:24:05 +05:30
const ROOT_PATH = '/usr/share/gitlab';
2018-11-08 20:39:57 +05:30
const CACHE_PATH = path.join(ROOT_PATH, 'tmp/cache');
@@ -265,17 +264,6 @@
// enable HMR only in webpack-dev-server
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
2018-02-26 16:52:34 +05:30
2018-11-08 20:39:57 +05:30
- // optionally generate webpack bundle analysis
- WEBPACK_REPORT &&
- 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'),
- }),
- ].filter(Boolean),
2018-02-26 16:52:34 +05:30
-
2018-11-08 20:39:57 +05:30
devServer: {
host: DEV_SERVER_HOST,
port: DEV_SERVER_PORT,