Skip to content

Commit

Permalink
Update to Microbundle 0.11 and optimize build
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Mar 4, 2019
1 parent e7a9ce2 commit 2ec1e34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions mangle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
"what is this file?": "It controls protected/private property mangling so that minified builds have consistent property names.",
"why are there duplicate minified properties?": "Most properties are only used on one type of objects, so they can have the same name since they will never collide. Doing this reduces size."
},
"minify": {
"mangle": {
"properties": {
"regex": "^_"
}
},
"compress": {
"hoist_vars": true,
"reduce_funcs": false
}
},
"props": {
"cname": 6,
"props": {
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"lint": "eslint src test",
"postinstall": "node -e \"console.log('\\u001b[35m\\u001b[1mLove Preact? You can now donate to our open collective:\\u001b[22m\\u001b[39m\\n > \\u001b[34mhttps://opencollective.com/preact/donate\\u001b[0m')\""
},
"mangle": {
"regex": "^_"
},
"eslintConfig": {
"extends": "developit",
"settings": {
Expand Down Expand Up @@ -123,7 +120,7 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^3.0.5",
"lodash": "^4.17.10",
"microbundle": "^0.10.1",
"microbundle": "^0.11.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.0.0",
"sinon": "^6.1.3",
Expand Down

0 comments on commit 2ec1e34

Please sign in to comment.