Replies: 4 comments 2 replies
-
It's working awesomely for us. Situation: Building assets for a traditional (server-rendered) website, where a gulp build process is already copying the assets to the public directory. Yes, we're working towards completely removing gulp but that means redoing the component library so it's a slow process. I didn't want to add a bundler into gulp; let's move towards where we want to be. Before this option, we ended up with a set of (gulp copied) assets where we wanted them, and then Vue added a second set at |
Beta Was this translation helpful? Give feedback.
-
I'm using Technically I could use |
Beta Was this translation helpful? Give feedback.
-
I wonder if it would be possible to copy the files from publicDir to dist/<custom_dir>/assets, the case for me is that I need to version the builds and then I would like all bundled files are under dist/1.0.0/ for example. |
Beta Was this translation helpful? Give feedback.
-
This flag was helpful. My use case: my app allows user-uploaded files, which are saved under I know it's more common to save user uploads on an external service optimized for file storage like S3, but this app is so small-scale that's not necessary. |
Beta Was this translation helpful? Give feedback.
-
build.copyPublicDir
If you have feedback about this API, please share it here so we can evaluate moving this feature out of experimental in Vite 5.
Beta Was this translation helpful? Give feedback.
All reactions