How to get the cache from previous build to speed up CI/CD? #17541
-
Hi there! As I understand, Vite should not rebuild the dependencies that were built on the previous build and didn't change since then but because each build is located in a different directory for zero-downtime reason, I think that I may add a configuration to help vite locate the previous build file. My CI file-system organization is somewhat basic.
I think that I may only need to inform vite to load the cache from the May someone points me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://vitejs.dev/guide/dep-pre-bundling#file-system-cache You can copy |
Beta Was this translation helpful? Give feedback.
https://vitejs.dev/guide/dep-pre-bundling#file-system-cache
You can copy
/node_modules/.vite
from the previous buildcp -r
will do the job