summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwinh <winnie@gitlab.com>2017-05-31 11:34:41 +0200
committerwinh <winnie@gitlab.com>2017-05-31 11:36:37 +0200
commitd571690b94bf8f8afc2a30415d3df80602187303 (patch)
treee0e9287dbb27d25846ff0bd5fef3a1ff138022a5
parente20eb71203aa29458d7f51a27d42a3d8208e2494 (diff)
downloadgitlab-ce-winh-karma-sourcemaps.tar.gz
Use inline source maps for karma (!11815)winh-karma-sourcemaps
-rw-r--r--config/karma.config.js2
-rw-r--r--config/webpack.config.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index eb082dd28bf..40c58e7771d 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -13,6 +13,8 @@ if (webpackConfig.plugins) {
});
}
+webpackConfig.devtool = 'cheap-inline-source-map';
+
// Karma configuration
module.exports = function(config) {
var progressReporter = process.env.CI ? 'mocha' : 'progress';
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 42024739fe9..41dff15feed 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -72,8 +72,6 @@ var config = {
filename: IS_PRODUCTION ? '[name].[chunkhash].bundle.js' : '[name].bundle.js'
},
- devtool: 'cheap-module-source-map',
-
module: {
rules: [
{