https://github.com/qdouble/aot-form-controls-build-bug
AOT and Form Control build bug
https://github.com/qdouble/aot-form-controls-build-bug
Last synced: about 1 month ago
JSON representation
AOT and Form Control build bug
- Host: GitHub
- URL: https://github.com/qdouble/aot-form-controls-build-bug
- Owner: qdouble
- Created: 2016-09-08T20:37:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T20:37:17.000Z (almost 10 years ago)
- Last Synced: 2025-01-08T00:24:19.333Z (over 1 year ago)
- Language: TypeScript
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AOT and Form Control build bug
> If you have a lot of form controls in template and compile with AOT,
webpack build will hang for a long time or seemingly never complete.
To demo the bug, just clone the github repo and run `npm i` to install.
To compile and build files, run `npm run compile`.
To create a normal build without ngc, just use `npm run build`.
To start server, use `npm run prodserver`.
I have 20 form controls on it right now, so it should take about 2 minutes to build.
If you delete 5 of them, it should build after compile in about 12 seconds.
If you put it to 30 controls, it should hang for an extremely long time or never complete.