diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-15 17:48:46 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-15 17:48:46 +0300 |
commit | 23e6cd6f1d9a6379491ba80b90e6003ff0480260 (patch) | |
tree | 614e88ee78fca6d5e1960b714ff2df36b7d0ecc5 /config | |
parent | 35b31ba84fd4ea37debfaf50a5ab98a417f2158a (diff) |
only load istanbul plugin in development mode
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 5d5e4bb570a..7782fe393ea 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' |