소스 검색

chore: 添加 build:prod 脚本避免遗漏 BASE_PATH

guoziyun 3 주 전
부모
커밋
3a656069a8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      package.json

+ 1 - 0
package.json

@@ -9,6 +9,7 @@
     "dev:server": "cd platform/server && npm run dev",
     "dev:client": "cd platform/client && npm run dev",
     "build": "npm run build:client && npm run build:server",
+    "build:prod": "BASE_PATH=/ads/ npm run build",
     "build:template": "cd templates/coloring && npm run build:all",
     "build:server": "cd platform/server && npm run build",
     "build:client": "cd platform/client && npm run build",