Fix IE/Safari 10 uglify ecma option

This commit is contained in:
Paul Chavard 2018-08-13 14:00:41 +02:00
parent df738c9f6d
commit 0ba4d3dc4c

View file

@ -2,4 +2,8 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const environment = require('./environment') const environment = require('./environment')
// https://github.com/rails/webpacker/issues/1235
environment.config.optimization.minimizer[0].options.uglifyOptions.ecma = 5; // for IE 11 support
environment.config.optimization.minimizer[0].options.uglifyOptions.safari10 = true;
module.exports = environment.toWebpackConfig() module.exports = environment.toWebpackConfig()