MOBILE-3333 ionic: Keep classnames when minifying
This commit is contained in:
parent
b7ffc0042f
commit
cc21187f30
19
config/uglifyjs.config.js
Normal file
19
config/uglifyjs.config.js
Normal 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
|
||||
}
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user