你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

Vite Build Development Environment

2022/9/5 7:13:05

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"
  },