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"
},
标签:Development,development,Environment,Build,vite,build
From: https://www.cnblogs.com/grandyang/p/16656736.html