-
Notifications
You must be signed in to change notification settings - Fork 9
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
Asset URL changes when lib rebuilds in watch mode #92
Comments
@kanonieer Under watch mode, due to the build cache, unchanged files are not re-processed by the plugin, and the assets within them aren't recognized. As a result, it's expected that the |
@kanonieer I just released v0.5.25 under the next tag, you can try it to see if it solves your problem. |
@coder-layne in version v0.5.25 after changing any file the assets folder is deleted. In version v0.5.24 I have an error after changing any file and the folder is also deleted. |
@coder-layne The fix you made resolved the issue I had - many thanks for the help ❤️ 🙇♂️ |
@rbatistajs Thanks for your feedback, and can you provide a minimal reproducible version? |
Getting error failed to preprocessCSS [sass] Undefined variable even the variable is defined |
@mdsadiqueinam Can you open a new issue and provide a minimal reproducible example? |
Hi, TLDR I have issue that the url to assets get changed in output js files on rebuild in watch mode
Little project setup background:
in
/library
I have a component that imports an svg for background image likeThe
image.svg
is correctly bundled intodist/assets/image.svg
and is correctly linked inmyComponent.js
bundled file asThe issue I have occurs in dev mode in which I have the
library
built viavite build --watch
- when I update code oflibrary
it gets rebuild and the link to asset get updated towhich no longer correctly links to asset folder (assets still exist under previous url)
here is how my
vite.config
looks likeThe issue seems to be similar to the one described there #89
PS. I was logging asset within
outputPath
function and I noticed it's only called during first build and not when the lib rebuilds - could it be the issue?Thanks in advance for any help or advice 🙏
The text was updated successfully, but these errors were encountered: