Merge branch 'fix-production-assets' into 'master'

Only load istanbul plugin in development mode

See merge request !9261
This commit is contained in:
Alfredo Sumaran 2017-02-15 16:15:31 +00:00
commit af1c217f9b
1 changed files with 1 additions and 1 deletions

View File

@ -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'