-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
feat(astro-angular): enabled angular prod build #66
feat(astro-angular): enabled angular prod build #66
Conversation
The test failure is probably because it needs the jest-preset-angular package for testing. We can switch to running the tests with Vitest and the Angular plugin |
Based on the Astro docs, this seems like the appropriate place to use this. https://docs.astro.build/en/reference/integrations-reference/#astrobuildsetup |
I switched from jest to vitest. Modified the tests and used the astro:build:setup hook instead of astro:build:start. |
Sorry about the miscommunication. I meant to post the build start link instead of the build setup one. I think either is suitable though so it can stay as is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks a bunch! @allcontributors add @simitch1 for code |
I've put up a pull request to add @simitch1! 🎉 |
I think that to enable angular prod mode like requested in this issue #64 , we could simply use the astro:build:start or astro:build:setup hook to enable the prod compilation a single time.
I tried the build locally and seems to work, but I don't really know how to test further.
Before:
After:
Tests are failing right know but build is good. If the solution is ok I can work on it.
Let me know what do you think.