MOBILE-3333 ionic: Keep classnames when minifying

main
Pau Ferrer Ocaña 2020-03-10 13:58:56 +01:00
parent b7ffc0042f
commit cc21187f30
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// Check https://github.com/mishoo/UglifyJS2/tree/harmony#minify-options-structure
module.exports = {
/**
* mangle: uglify 2's mangle option
*/
mangle: {
keep_classnames: true,
keep_fnames: true
},
/**
* compress: uglify 2's compress option
*/
compress: {
toplevel: true,
pure_getters: true
},
keep_classnames: true,
keep_fnames: true
}

View File

@ -9,6 +9,7 @@
"config": {
"ionic_webpack": "./config/webpack.config.js",
"ionic_copy": "./config/copy.config.js",
"ionic_uglifyjs": "./config/uglifyjs.config.js",
"ionic_sass": "./config/sass.config.js"
},
"repository": {