Fix IE/Safari 10 uglify ecma option
This commit is contained in:
parent
df738c9f6d
commit
0ba4d3dc4c
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