Replies: 2 comments 3 replies
-
I'm guessing your best option is to use #5104 which is in 2.6 beta with the option for build and putting your assets in a cdn |
Beta Was this translation helpful? Give feedback.
1 reply
-
I wrote a plugin to support this problem, it works in development environment and automatically copies folders when running build!! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to mount two different folders of static content. The first folder contains the standard 'public' web stuff - favicons, manifest.json and so on.
The second folder contains many gigabytes of game data - audio files, 3d model files (gltf), textures and so on.
Copying the game data into the 'public' folder is expensive and slow because the files are so large. Also, I have more than one vite app that uses the same data (the game and the editor), and I don't want to have to sync multiple copies of the game data. I would rather have the game data live in one place.
It would be much easier if there was a way that I could simply 'mount' or 'alias' the second static folder, either as a completely separate url path or as a sub-folder of the regular 'public' folder. However, I've gone through the Vite documentation a bunch of times and there doesn't seem to be a way to do this.
A symlink would do the job, but won't work on non-unix systems.
Beta Was this translation helpful? Give feedback.
All reactions