You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the @sveltejs/img:enhanced package generates a large number of cacheable converted image variants in various sizes/formats. This process also takes a long time to run the more images are processed and the more variants that are requested.
The vite-imagetools plugin supports caching these artifacts, which @sveltejs/img:enhanced also supports as of v0.2
It does not seem to be possible to use the configuration options that are built into the vite-imagetools plugin to specify where these cached build artifacts should be saved though when using @sveltejs/img:enhanced.
Describe the proposed solution
I would like to be able to configure the upstream vite-imagetools cache options for use in @sveltejs/enhanced:img.
The upstream PR is here and the documented configuration object for cache options is here.
Perhaps having a config passthrough in the vite.config.js file could be an acceptable solution?
I have setup a cache using the default location that vite-imagetools uses but I would like to manually specify the cache location and bring it outside of the node_modules folder.
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
Using the
@sveltejs/img:enhanced
package generates a large number of cacheable converted image variants in various sizes/formats. This process also takes a long time to run the more images are processed and the more variants that are requested.The
vite-imagetools
plugin supports caching these artifacts, which@sveltejs/img:enhanced
also supports as of v0.2It does not seem to be possible to use the configuration options that are built into the
vite-imagetools
plugin to specify where these cached build artifacts should be saved though when using@sveltejs/img:enhanced
.Describe the proposed solution
I would like to be able to configure the upstream
vite-imagetools
cache options for use in@sveltejs/enhanced:img
.The upstream PR is here and the documented configuration object for cache options is here.
Perhaps having a config passthrough in the
vite.config.js
file could be an acceptable solution?Alternatives considered
I have setup a cache using the default location that vite-imagetools uses but I would like to manually specify the cache location and bring it outside of the
node_modules
folder.Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: