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
Different build results with --prod vs --prod --aot #11915
Comments
|
@clydin there is nothing about |
Unless specified in your The "configurations": {
"production": {
...
"aot": true
}
} This flag is set by default to |
According to what you are saying, then what's written here is wrong: |
It’s correct for new projects which by default have the aot option enabled in their production configuration. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)If I'm not mistaken, the Ahead of Time Compilation is currently enabled by default in
ng build
when run with--prod
(as the documentation says).However, apparently running
ng build --prod
andng build --prod --aot
leads to different results for me.As you can notice from the output, not only the bundle sizes are different but I even got warnings when using
--prod --aot
that I normally don't get.Command (mark with an
x
)Versions
Repro steps
Run an Angular project with
ng build --prod
and compare its console output withng build --prod --aot
.Desired functionality
The behaviour should be the same.
The text was updated successfully, but these errors were encountered: