Merge pull request #2383 from tchak/fix-ie-uglify
Fix IE uglify ecma option
This commit is contained in:
commit
c7f616843f
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue