-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
fix(vite-plugin-angular): fix SSG and HMR of external component stylesheets #1548
fix(vite-plugin-angular): fix SSG and HMR of external component stylesheets #1548
Conversation
@@ -187,6 +188,33 @@ export function augmentHostWithResources( | |||
|
|||
return null; | |||
}; | |||
|
|||
resourceHost.resourceNameToFileName = function ( |
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.
✅ Deploy Preview for analog-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for analog-blog ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for analog-app ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
ecc0612
to
83b961f
Compare
✅ Deploy Preview for analog-ng-app ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Co-authored-by: Brandon Roberts <[email protected]>
PR Checklist
Closes #
What is the new behavior?
Fixes HMR of component
styleUrls
when using SSG. Without this patch, all component stylesheet urls will be added to the DOM twice, and only the first one will be reloaded dynamically so the changes won't appear on the page.To test it locally, you can make a change in
apps/analog-app/src/app/pages/shipping/shipping.scss
and observe HMR working onhttp://localhost:3000/shipping
Does this PR introduce a breaking change?
Other information
[optional] What gif best describes this PR or how it makes you feel?