From af19abcf3ee848ef805e8bdf49b423e23ca838a9 Mon Sep 17 00:00:00 2001 From: Odboy Date: Mon, 26 Jan 2026 19:43:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(build):=20=E6=9B=B4=E6=96=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=84=9A=E6=9C=AC=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 build:dev 命令用于开发环境构建 - 为 build:prod 命令显式指定 production 模式 - 添加 build:production 别名命令 --- cutejava-front/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cutejava-front/package.json b/cutejava-front/package.json index a43f9315..20338ea0 100644 --- a/cutejava-front/package.json +++ b/cutejava-front/package.json @@ -8,8 +8,10 @@ "dev": "vue-cli-service serve", "dev-win": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "dev-linux": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", + "build:dev": "vue-cli-service build --mode development", "build:stage": "vue-cli-service build --mode staging", - "build:prod": "vue-cli-service build", + "build:prod": "vue-cli-service build --mode production", + "build:production": "vue-cli-service build", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", "test:unit": "jest --clearCache && vue-cli-service test:unit",