소스 검색

增加script

songzhen 5 달 전
부모
커밋
0c42d8188e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -2,7 +2,8 @@
   "name": "nuxt-app",
   "private": true,
   "scripts": {
-    "build": "nuxt build",
+    "build": "nuxt build --dotenv .env.development",
+    "build:pro": "nuxt build --dotenv .env.production",
     "dev": "nuxt dev --dotenv .env.development",
     "dev:pro": "nuxt dev --dotenv .env.production",
     "generate": "nuxt generate",