Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AOT #109

Closed
DzmitryShylovich opened this issue Sep 26, 2016 · 2 comments
Closed

Support AOT #109

DzmitryShylovich opened this issue Sep 26, 2016 · 2 comments

Comments

@DzmitryShylovich
Copy link

To be able to compile project in aot mode all 3rd party libs need to publish metadata.json file.
Therefore, you need to compile this project with ngc.

"angularCompilerOptions": {
"skipTemplateCodegen": true
}
Add that to tsconfig and ngc will only generate metadata files and not ngfactories.

Examples: material2.

@mseemann mseemann added this to the version 2.0.0 milestone Sep 26, 2016
@mseemann
Copy link
Owner

mseemann commented Sep 28, 2016

is there any official documentation about skipTemplateCodegen?
only found this: https://www.reddit.com/r/Angular2/comments/52vz2b/how_to_publish_component_as_library/

@mseemann
Copy link
Owner

mseemann commented Oct 3, 2016

will be coverd in #110

@mseemann mseemann closed this as completed Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants