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
styles that are not injected do count for initial bundle size. #17672
Comments
We are having the same issue which breaks our deployments. The issue, for me, does not happen when I am on Broken
Not Broken
|
…ount for initial bundle size Closes #17672
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
Command (mark with an
x
)Is this a regression?
Unknown
Description
We generate different themes for our production build.
All are based on the same base styles with a different variables.scss.
We produce new files on each production build (which is handled by our ci/cd so build time is not that important).
the different styles are defined in the "styles" section of angular.json:
As you can see, the files are not injected.
In the production index.html I have verified that the files are not injected.
However, recently the budget exceeded for initial error caused our build to fail:
When we removed the different themes, the error dissapeared.
When looking at the build log it looks like the size of all the additional themes are included sum of the initial bundle size and thus are the cause of exceeding the limit (but in fact they are not, which is 👍 )
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: