-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[Bug]: Bug with fonts during local development #6644
Comments
Hello @exocornet, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by |
Hello, I provide a repository File rspack.config.js 139 line. I had to disable caching to work correctly locally, but the collector began to work slower. I connect the fonts in fonts.scss I also have two more questions:
Thanks for the help and quick response. |
cc @jerrykingxyz , seems to be a bug of incremental build while handling assets, I made a more simple repro here, just |
Hello. Yes, that's right, that's true. But webpack did not have this bug. Can you please tell me how to solve this problem? And also tell me, with the other two questions, are there already answers or solutions? |
@exocornet you can try set output.clean to false to workaround. The other two questions about plugin compatibility @h-a-n-a cc |
Thank you very much, everything works. But I would like to have support like in webpack. And so I have to set isProd for clean. Although this may be more correct for local assembly, here I rely on your expertise. @h-a-n-a Hello, I was advised to contact you regarding the two questions above. Can you suggest something?
Thanks for the help and quick response. |
The plugin's relying on a few hooks that does quite expensive jobs on the JS side. We're not likely to support this. |
Since the bug has been resolved, I will close this issue. |
System Info
fonts disappear
Details
If the font is connected via scss (css) and caching is enabled, when you change the scss or ts files where scss (css) is not connected, the fonts are deleted, which makes development difficult.
Reproduce link
No response
Reproduce Steps
The text was updated successfully, but these errors were encountered: