-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Make integration work without manually restarting the server. #181
Comments
I have the same problem. When I change an SVG icon, the dev-debugger reports its awareness that the file changed...but makes no effort to re-compile anything. I have to completely stop and restart the VSCode dev/debug session to have the icons recompile. I am suspicious this is related to Astro Icon reporting "No Icons detected" when the debug session starts. That is, if the Astro Icon integration isn't fully and properly aware that icons are "present", then perhaps it doesn't know how to signal a rebuild when one of them changes. My setup...
I am using |
I believe this will be as simple as moving this line inside of the Vite plugin rather than having it outside of the closure. That way the collections are reloaded every time the plugin is instantiated.
|
* fix(#181): avoid closure * chore: add changeset
What version of
astro-icon
are you using?No response
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When I update options in the icon integration in the astro.config.*, the changes are not detected despite the server restarting unless I restart the server manually.
What's the expected result?
I expect the changes to be detected without manually restarting the server, since the server automatically starts whenever there is a change in the astro configuration.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-example-with-astro-icon-integration
The text was updated successfully, but these errors were encountered: