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

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'