summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-04-19 17:37:27 -0500
committerMike Greiling <mike@pixelcog.com>2018-04-23 00:54:21 -0500
commitc15584f2aa7cc03468f53a597731700d2f859537 (patch)
tree9e6a35e6ab24194be3956c37a21e2b6c116304de /config
parent6180102fb0aede36d139c52c84691757ceec85f3 (diff)
downloadgitlab-ce-c15584f2aa7cc03468f53a597731700d2f859537.tar.gz
disable sourcemaps when generating coverage report to avoid out-of-memory errors
Diffstat (limited to 'config')
-rw-r--r--config/karma.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 61f02294157..691cda98861 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -33,7 +33,7 @@ webpackConfig.plugins.push(
})
);
-webpackConfig.devtool = 'cheap-inline-source-map';
+webpackConfig.devtool = process.env.BABEL_ENV !== 'coverage' && 'cheap-inline-source-map';
// Karma configuration
module.exports = function(config) {