summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-06-08 11:09:21 -0500
committerMike Greiling <mike@pixelcog.com>2018-06-08 11:09:21 -0500
commitb1724951fdb1cacbfa286ab998265b8d4fc03a22 (patch)
treefc57ced3ab8f3c1fff6fd3a26930a4b3e0384718
parent3cb560f83d7ac4e436f86b943b54560c0622d9bd (diff)
downloadgitlab-ce-reduce-webpack-compile-memory.tar.gz
attempt to reduce webpack memory consumption in productionreduce-webpack-compile-memory
-rw-r--r--config/webpack.config.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index e760ce1cb8c..55ff1e6f836 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -219,7 +219,9 @@ module.exports = {
new VueLoaderPlugin(),
// automatically configure monaco editor web workers
- new MonacoWebpackPlugin(),
+ new MonacoWebpackPlugin({
+ features: [],
+ }),
// prevent pikaday from including moment.js
new webpack.IgnorePlugin(/moment/, /pikaday/),
@@ -287,7 +289,7 @@ module.exports = {
inline: DEV_SERVER_LIVERELOAD,
},
- devtool: IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map',
+ devtool: IS_PRODUCTION ? 'nosources-source-map' : 'cheap-module-eval-source-map',
// sqljs requires fs
node: { fs: 'empty' },