You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -134,8 +134,8 @@ npm run build --rollup ./config/rollup.config.js
134
134
| print modified dependency tree |`ionic_print_modified_dependency_tree`|`--printModifiedDependencyTree`|`null`| Set to `true` to print out the modified dependency tree after purging unused modules |
135
135
| print webpack dependency tree |`ionic_print_webpack_dependency_tree`|`--printWebpackDependencyTree`|`null`| Set to `true` to print out a dependency tree after running Webpack |
136
136
| parse deeplink config |`ionic_parse_deeplinks`|`--parseDeepLinks`|`true`| Parses and extracts data from the `@IonicPage` decorator |
137
-
|experimental manual tree shaking |`ionic_experimental_manual_treeshaking`|`--experimentalManualTreeshaking`|`null`| Set to `true` to purge unused Ionic components/code (Experimental)|
138
-
|experimental purge decorators |`ionic_experimental_purge_decorators`|`--experimentalPurgeDecorators`|`null`| Set to `true` to purge unneeded decorators to improve tree shakeability of code (Experimental)|
137
+
| manual tree shaking |`ionic_manual_treeshaking`|`--manualTreeshaking`|`true`| Set to `true` to purge unused Ionic components/code |
138
+
| purge decorators |`ionic_purge_decorators`|`--purgeDecorators`|`true`| Set to `true` to purge unneeded decorators to improve tree shakeability of code |
139
139
| experimental closure compiler |`ionic_use_experimental_closure`|`--useExperimentalClosure`|`null`| Set to `true` to use closure compiler to minify the final bundle |
140
140
| experimental babili |`ionic_use_experimental_babili`|`--useExperimentalBabili`|`null`| Set to `true` to use babili to minify es2015 code |
141
141
| convert bundle to ES5 |`ionic_build_to_es5`|`--buildToEs5`|`true`| Convert bundle to ES5 for for production deployments |
@@ -179,8 +179,8 @@ These environment variables are automatically set to [Node's `process.env`](http
179
179
|`IONIC_PRINT_MODIFIED_DEPENDENCY_TREE`| boolean to print out the modified dependency tree after purging unused modules |
180
180
|`IONIC_PRINT_WEBPACK_DEPENDENCY_TREE`| boolean to print out a dependency tree after running Webpack |
181
181
|`IONIC_PARSE_DEEPLINKS`| boolean to enable parsing the Ionic 3.x deep links API for lazy loading |
182
-
|`IONIC_EXPERIMENTAL_MANUAL_TREESHAKING`| boolean to enable purging unused Ionic components/code (Experimental)|
183
-
|`IONIC_EXPERIMENTAL_PURGE_DECORATORS`| boolean to enable purging unneeded decorators from source code (Experimental)|
182
+
|`IONIC_MANUAL_TREESHAKING`| boolean to enable purging unused Ionic components/code |
183
+
|`IONIC_PURGE_DECORATORS`| boolean to enable purging unneeded decorators from source code |
184
184
|`IONIC_USE_EXPERIMENTAL_CLOSURE`| boolean to enable use of closure compiler to minify the final bundle |
185
185
|`IONIC_USE_EXPERIMENTAL_BABILI`| boolean to enable use of babili to minify es2015 code |
186
186
|`IONIC_BUILD_TO_ES5`| boolean to enable converting bundle to ES5 for for production deployments |
@@ -230,7 +230,6 @@ Example NPM Script:
230
230
```
231
231
npm run lint --bailOnLintError true
232
232
```
233
-
3. Set `ionic_experimental_manual_treeshaking` and `ionic_experimental_purge_decorators` to true in the `package.json` to potentially dramatically shrink an app's bundle size.
0 commit comments