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