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"
  },
posted @ 2022-09-05 06:49  Grandyang  阅读(170)  评论(0编辑  收藏  举报
Fork me on GitHub