Releases: rambler-digital-solutions/rship
Releases · rambler-digital-solutions/rship
Added ability to directly configure minification params
minify
param in build
section of ship.config.js
can now have three possible values:
-
true
— will enable default minification using UglifyJS. Default params are:{ compress: { warnings: true } }
-
false
— minification for production builds will be turned off. -
object
— configuration that will be explicitly passed towebpack.optimize.UglifyJsPlugin
constructor.For example if you need to disable function and class names minification you can do it this way:
// ship.config.js module.exports = { ... build: { ... minify: { compress: { warnings: true, keep_fnames: true, }, mangle: { keep_fnames: true, }, }, }, };