Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zhkslk's avatar
Level 53

Vite in Production

How vite is supposed to work in production if public/build folder is gitignored?

0 likes
4 replies
MohamedTammam's avatar
Level 51

You build the files after you push to production, or you remove it from gitignore and build it before you push.

1 like
Sinnbeck's avatar

@zhkslk just remember to have zero downtime deployment, or enable maintenance mode. Vite removes all css and js while compiling, which will break the site

1 like

Please or to participate in this conversation.