summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 16:15:31 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-15 16:15:31 +0000
commitaf1c217f9b6dea2afccd7ac2ee89e5b7cef2a8dd (patch)
tree4887cd4b970c83ca0a035f78d78c3dd64abffc8d /config/webpack.config.js
parent34231fd3796a80db3a9a533fb1f250ee84e3ac46 (diff)
parent23e6cd6f1d9a6379491ba80b90e6003ff0480260 (diff)
downloadgitlab-ce-af1c217f9b6dea2afccd7ac2ee89e5b7cef2a8dd.tar.gz
Merge branch 'fix-production-assets' into 'master'
Only load istanbul plugin in development mode See merge request !9261
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 07023bdee51..e63775e43ce 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -54,7 +54,7 @@ var config = {
exclude: /(node_modules|vendor\/assets)/,
loader: 'babel-loader',
options: {
- plugins: ['istanbul'],
+ plugins: IS_PRODUCTION ? [] : ['istanbul'],
presets: [
["es2015", {"modules": false}],
'stage-2'