Ver código fonte

feat:增加 npm build prod,参考 https://t.zsxq.com/mdNd4

YunaiV 6 meses atrás
pai
commit
be58daa1a5
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      package.json

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
   "scripts": {
     "dev": "vite --host",
     "build": "vue-tsc --noEmit && vite build",
+    "build:prod": "vite build --mode production",
     "preview": "vite preview",
     "new": "plop --plopfile ./plop/plopfile.js",
     "postinstall": "husky install",