Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit d0a3894

Browse files
authored
chore(changelog): updates for 0.0.47
1 parent 20eab39 commit d0a3894

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

CHANGELOG.md

+32-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
### Upgrade Instructions
55

6+
#### Entry Point Changes
67
Delete `main.dev.ts` and `main.prod.ts` and create a `main.ts` file with the following content:
78

89
```
@@ -13,10 +14,35 @@ import { AppModule } from './app.module';
1314
platformBrowserDynamic().bootstrapModule(AppModule);
1415
```
1516

17+
#### Dev Builds By Default Changes
18+
All builds are now development (non-AoT) builds by default. This allows for a better development experience when testing on a device. To get started, please follow the steps below.
19+
20+
Make sure the `script` section of `package.json` looks like this:
21+
22+
```
23+
"scripts": {
24+
"ionic:build": "ionic-app-scripts build",
25+
"ionic:serve": "ionic-app-scripts serve"
26+
}
27+
```
28+
29+
`ionic run android --prod` will do a production build that utilizes AoT compiling and minifaction.
30+
`ionic emulate ios --prod` will do a production build that utilizes AoT compiling and minifaction.
31+
`ionic run android` will do a development build
32+
`ionic emulate ios` will do a development build
33+
34+
If you wish to run AoT but disable minifaction, do the following
35+
`ionic run android --aot`
36+
`ionic emulate ios --aot`
37+
38+
39+
#### Source Map Changes
1640
Change `ionic_source_map` to `ionic_source_map_type` in package.json if it is overridden.
1741

42+
#### Config Changes
1843
There were significant improvements/changes to most configs. Please review the changes and make sure any custom configs are up to date.
1944

45+
#### Validate TSConfig settings
2046
Verify that `tsconfig.json` is up to date with recommended settings:
2147

2248
```
@@ -48,12 +74,14 @@ Verify that `tsconfig.json` is up to date with recommended settings:
4874
}
4975
```
5076

77+
5178
### Breaking Changes
5279
1. `main.dev.ts` and `main.prod.ts` have been deprecated in favor of `main.ts` with the content of `main.dev.ts`. The content of `main.ts` will be optimized at build time for production builds.
53-
2. `copy.config` and `watch.config` have breaking changes moving to an easier-to-extend configuration style.
54-
3. `copy.config` uses `node-glob` instead of `fs-extra` to do the copy. Migrate from directory/files to globs in any custom configs.
55-
4. `ionic_source_map` configuration has been changed to `ionic_source_map_type`.
56-
5. Source maps now use `source-map` devtool option by default instead of `eval`. Change `ionic_source_map_type` option to return to the faster building `eval`.
80+
2. Builds are now always development (non-AoT) by default. To enable `prod` builds, use the `--prod` option.
81+
3. `copy.config` and `watch.config` have breaking changes moving to an easier-to-extend configuration style.
82+
4. `copy.config` uses `node-glob` instead of `fs-extra` to do the copy. Migrate from directory/files to globs in any custom configs.
83+
5. `ionic_source_map` configuration has been changed to `ionic_source_map_type`.
84+
6. Source maps now use `source-map` devtool option by default instead of `eval`. Change `ionic_source_map_type` option to return to the faster building `eval`.
5785

5886
### Bug Fixes
5987

0 commit comments

Comments
 (0)