-
Notifications
You must be signed in to change notification settings - Fork 3
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
Caching does not work properly #7
Comments
Yes, the problem is that (by default) Vite empties the And although the cache recognizes that the input file has not changed between builds, it will still force re-process because the output files are no longer there ( I'm not sure what happens when I think there should be a custom caching put in place that stores the results for re-use. I will also look into this. |
So I made a solution. (Included in release version 1.1.1) All output files are now also stored in a cache folder (
@naranjamecanica |
Did you set a different The folder used for caching the output files is relative to the root folder as configured for Vite (so In default Vite configuration, this is also where the See also So this seems the most logical place to put it. But we could add a option to specify a different cache directory? Using the directory of the cache module seems unwise, since I don't know whether or not (or when) this folder is deleted/emptied. So relying on our own cache folder is the best option. |
Note: |
Yes, i specify an other root dir for my projects
The root dir is not connected to the root of the whole project where About a cleanup routine for the cache, that can be a tricky one, but i'll give it a shot later. |
See #10 |
Hi, just to let you know, i've found out that the caching is not working properly yet... 😱
I'm going to look into it, but that will be probably beginning of next week.
A new release with cache:false as default could be a good idea...
The text was updated successfully, but these errors were encountered: