From b72d0b05740323bc5d9694f24acdb8db0422ce04 Mon Sep 17 00:00:00 2001 From: Xinwen <43830077+xzhang8102@users.noreply.github.com> Date: Fri, 19 Mar 2021 12:35:45 +0800 Subject: [PATCH 1/2] Minor change on the staging mode example As a beginner, I was confused with the parentheses staging line of the example. I thought the parentheses were the pattern to make the env variable work. I hope the change that I made could help. --- docs/guide/mode-and-env.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/mode-and-env.md b/docs/guide/mode-and-env.md index 9f5ec8baf8..fa84fe7028 100644 --- a/docs/guide/mode-and-env.md +++ b/docs/guide/mode-and-env.md @@ -86,7 +86,7 @@ And the following `.env.staging` file: ``` NODE_ENV=production -VUE_APP_TITLE=My App (staging) +VUE_APP_TITLE=My Staging App Title ``` - `vue-cli-service build` builds a production app, loading `.env`, `.env.production` and `.env.production.local` if they are present; From ba137a3eeaee9fba1c2510fe41d52405e5373161 Mon Sep 17 00:00:00 2001 From: Xinwen <43830077+xzhang8102@users.noreply.github.com> Date: Fri, 19 Mar 2021 15:21:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?change=20to=20=E2=80=98My=20Staging=20App?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/mode-and-env.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/mode-and-env.md b/docs/guide/mode-and-env.md index fa84fe7028..acf5b0fc67 100644 --- a/docs/guide/mode-and-env.md +++ b/docs/guide/mode-and-env.md @@ -86,7 +86,7 @@ And the following `.env.staging` file: ``` NODE_ENV=production -VUE_APP_TITLE=My Staging App Title +VUE_APP_TITLE=My Staging App ``` - `vue-cli-service build` builds a production app, loading `.env`, `.env.production` and `.env.production.local` if they are present;