Open janosh opened 2 years ago
Would love to see this. I'm trying to exclude the static/img
folder from the { files } in my service worker, because of the size.
I now do it with a workaround, but feels not very natural. Is there another solution for this problem?
Workaround: const cachedFiles = files.filter(file => !file.startsWith('/img');
Would also love to see this. It looks like vite only supports one public folder, so this might be a vite limitation?
Describe the problem
I'd like to get static assets from multiple locations. In this example the SvelteKit site is inside the
site/
directory as part of a bigger project and I'd like to use static assets fromassets/
andsite/static/
.Describe the proposed solution
config.kit.files.assets
could support arrays:This currently raises
Alternatives considered
Create an alias of
assets/
insite/static/
. It works but feels hacky.Importance
nice to have
Additional Information
No response