Merge pull request #2383 from tchak/fix-ie-uglify

Fix IE uglify ecma option
This commit is contained in:
Pierre de La Morinerie 2018-08-13 14:37:12 +02:00 committed by GitHub
commit c7f616843f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,4 +2,8 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'production'
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()