2018-07-12 11:50:47 +02:00
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
|
|
|
|
|
|
|
const environment = require('./environment')
|
|
|
|
|
2018-08-13 14:00:41 +02:00
|
|
|
// 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;
|
|
|
|
|
2018-07-12 11:50:47 +02:00
|
|
|
module.exports = environment.toWebpackConfig()
|