Vite Build Development Environment
Normally, vite build
by default is building the production environment only, but we still can make it build development environment by adding --mode development
flag, here are my scripts in the package.json
:
"scripts": {
"dev": "vite",
"build": "vite build",
"build:dev": "vite build --mode development",
"preview": "vite preview"
},