From 1c19ce59a151403d85e0552501a17cc46838167f Mon Sep 17 00:00:00 2001 From: YDKD <1606354057@qq.com> Date: Sat, 15 Jan 2022 19:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++++ .env.dev | 7 +++++++ .env.production | 4 ++++ .env.release | 8 ++++++++ package.json | 2 ++ 5 files changed, 25 insertions(+) create mode 100644 .env create mode 100644 .env.dev create mode 100644 .env.production create mode 100644 .env.release diff --git a/.env b/.env new file mode 100644 index 0000000..d267d9b --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +NODE_ENV = "development" +BASE_URL = "./" +VUE_APP_PUBLIC_PATH = "./" +VUE_APP_API = "https://test.confly.com/api" diff --git a/.env.dev b/.env.dev new file mode 100644 index 0000000..6c4af16 --- /dev/null +++ b/.env.dev @@ -0,0 +1,7 @@ +NODE_ENV = "production" +BASE_URL = "/" +VUE_APP_PUBLIC_PATH = "/" +VUE_APP_API = "/" + +IS_ANALYZE = true; + diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..ab1202c --- /dev/null +++ b/.env.production @@ -0,0 +1,4 @@ +NODE_ENV = "production" +BASE_URL = "/" +VUE_APP_PUBLIC_PATH = "/" +VUE_APP_API = "/" diff --git a/.env.release b/.env.release new file mode 100644 index 0000000..7f39576 --- /dev/null +++ b/.env.release @@ -0,0 +1,8 @@ +NODE_ENV = "production" +BASE_URL = "/" +VUE_APP_PUBLIC_PATH = "/" +VUE_APP_API = "/" + +IS_ANALYZE = true; + +ABC = "Eric-long" diff --git a/package.json b/package.json index 7e393f1..1c95eea 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", + "build-dev": "vue-cli-service build --mode dev", + "build-release": "vue-cli-service build --mode release", "build": "vue-cli-service build", "lint": "vue-cli-service lint" },