MOBILE-3333 ionic: Keep classnames when minifying
parent
b7ffc0042f
commit
cc21187f30
|
@ -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
|
||||||
|
}
|
|
@ -9,6 +9,7 @@
|
||||||
"config": {
|
"config": {
|
||||||
"ionic_webpack": "./config/webpack.config.js",
|
"ionic_webpack": "./config/webpack.config.js",
|
||||||
"ionic_copy": "./config/copy.config.js",
|
"ionic_copy": "./config/copy.config.js",
|
||||||
|
"ionic_uglifyjs": "./config/uglifyjs.config.js",
|
||||||
"ionic_sass": "./config/sass.config.js"
|
"ionic_sass": "./config/sass.config.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in New Issue