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.
We are starting to introduce optimizations to improve the size of the `bundle` generated by the build process.
6
+
7
+
The first set of optimizations are behind flags:
8
+
9
+
`ionic_experimental_manual_treeshaking` will remove Ionic components and code that are not being used from the bundle.
10
+
`ionic_experimental_purge_decorators` helps tree shaking by removing unnecessary `decorator` metadata from AoT code.
11
+
12
+
Since these are experimental, we are looking for feedback on how the work. Please test them out and [let us know](https://github.com/driftyco/ionic-app-scripts/issues) how it goes. See the instructions [here](https://github.com/driftyco/ionic-app-scripts#custom-configuration).
13
+
14
+
15
+
### Features
16
+
***fonts:** remove used fonts for cordova builds ([967f784](https://github.com/driftyco/ionic-app-scripts/commit/967f784))
17
+
18
+
### Bug Fixes
19
+
20
+
***build:** fix test if linting should trigger on file change ([#719](https://github.com/driftyco/ionic-app-scripts/issues/719)) ([e13b857](https://github.com/driftyco/ionic-app-scripts/commit/e13b857))
21
+
***lint:** capture results of all linted files ([eb4314e](https://github.com/driftyco/ionic-app-scripts/commit/eb4314e)), closes [#725](https://github.com/driftyco/ionic-app-scripts/issues/725)
22
+
***optimizations:** make optimizations work on windows and mac ([5fe21f3](https://github.com/driftyco/ionic-app-scripts/commit/5fe21f3))
23
+
***serve:** assign all ports dynamically ([#727](https://github.com/driftyco/ionic-app-scripts/issues/727)) ([6b4115c](https://github.com/driftyco/ionic-app-scripts/commit/6b4115c))
24
+
***webpack:** fix bug with using [name] for output file name ([1128c9c](https://github.com/driftyco/ionic-app-scripts/commit/1128c9c))
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -176,16 +176,16 @@ These environment variables are automatically set to [Node's `process.env`](http
176
176
|`IONIC_WEBPACK_FACTORY`| The absolute path to Ionic's `webpack-factory` script |
177
177
|`IONIC_WEBPACK_LOADER`| The absolute path to Ionic's custom webpack loader |
178
178
|`IONIC_BAIL_ON_LINT_ERROR`| Boolean determining whether to exit with a non-zero status code on error |
179
-
|`ionic_aot_write_to_disk`|`--aotWriteToDisk`|`null`| Set to `true` to write files to disk for debugging |
180
-
|`ionic_print_original_dependency_tree`| boolean to print out the original dependency tree calculated during the optimize step |
181
-
|`ionic_print_modified_dependency_tree`| boolean to print out the modified dependency tree after purging unused modules |
182
-
|`ionic_print_webpack_dependency_tree`| boolean to print out a dependency tree after running Webpack |
183
-
|`ionic_experimental_parse_deeplinks`| boolean to enable parsing the Ionic 3.x deep links API for lazy loading (Experimental) |
184
-
|`ionic_experimental_manual_treeshaking`| boolean to enable purging unused Ionic components/code (Experimental) |
185
-
|`ionic_experimental_purge_decorators`| boolean to enable purging unneeded decorators from source code (Experimental) |
186
-
|`ionic_use_experimental_closure`| boolean to enable use of closure compiler to minify the final bundle |
187
-
|`ionic_use_experimental_babili`| boolean to enable use of babili to minify es2015 code |
188
-
|`ionic_build_to_es5`| boolean to enable converting bundle to ES5 for for production deployments |
179
+
|`IONIC_AOT_WRITE_TO_DISK`|`--aotWriteToDisk`|`null`| Set to `true` to write files to disk for debugging |
180
+
|`IONIC_PRINT_ORIGINAL_DEPENDENCY_TREE`| boolean to print out the original dependency tree calculated during the optimize step |
181
+
|`IONIC_PRINT_MODIFIED_DEPENDENCY_TREE`| boolean to print out the modified dependency tree after purging unused modules |
182
+
|`IONIC_PRINT_WEBPACK_DEPENDENCY_TREE`| boolean to print out a dependency tree after running Webpack |
183
+
|`IONIC_EXPERIMENTAL_PARSE_DEEPLINKS`| boolean to enable parsing the Ionic 3.x deep links API for lazy loading (Experimental) |
184
+
|`IONIC_EXPERIMENTAL_MANUAL_TREESHAKING`| boolean to enable purging unused Ionic components/code (Experimental) |
185
+
|`IONIC_EXPERIMENTAL_PURGE_DECORATORS`| boolean to enable purging unneeded decorators from source code (Experimental) |
186
+
|`IONIC_USE_EXPERIMENTAL_CLOSURE`| boolean to enable use of closure compiler to minify the final bundle |
187
+
|`IONIC_USE_EXPERIMENTAL_BABILI`| boolean to enable use of babili to minify es2015 code |
188
+
|`IONIC_BUILD_TO_ES5`| boolean to enable converting bundle to ES5 for for production deployments |
189
189
190
190
191
191
The `process.env.IONIC_ENV` environment variable can be used to test whether it is a `prod` or `dev` build, which automatically gets set by any command. By default the `build` and `serve` tasks produce `dev` builds (a build that does not include Ahead of Time (AoT) compilation or minification). To force a `prod` build you should use the `--prod` command line flag.
0 commit comments