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.
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
16
40
Change `ionic_source_map` to `ionic_source_map_type` in package.json if it is overridden.
17
41
42
+
#### Config Changes
18
43
There were significant improvements/changes to most configs. Please review the changes and make sure any custom configs are up to date.
19
44
45
+
#### Validate TSConfig settings
20
46
Verify that `tsconfig.json` is up to date with recommended settings:
21
47
22
48
```
@@ -48,12 +74,14 @@ Verify that `tsconfig.json` is up to date with recommended settings:
48
74
}
49
75
```
50
76
77
+
51
78
### Breaking Changes
52
79
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`.
0 commit comments