diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-08 11:09:21 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-08 11:09:21 -0500 |
commit | b1724951fdb1cacbfa286ab998265b8d4fc03a22 (patch) | |
tree | fc57ced3ab8f3c1fff6fd3a26930a4b3e0384718 | |
parent | 3cb560f83d7ac4e436f86b943b54560c0622d9bd (diff) | |
download | gitlab-ce-reduce-webpack-compile-memory.tar.gz |
attempt to reduce webpack memory consumption in productionreduce-webpack-compile-memory
-rw-r--r-- | config/webpack.config.js | 6 |
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' }, |