chore: merge branch 'dev' into docs

This commit is contained in:
Haoqun Jiang
2019-02-20 16:54:46 +08:00
51 changed files with 315 additions and 189 deletions
+3 -3
View File
@@ -10,8 +10,8 @@ vue create hello-world
::: warning
If you are on Windows using Git Bash with minTTY, the interactive prompts will not work. You must launch the command as `winpty vue.cmd create hello-world`.
If you however want to still use the `vue create hello-world` syntax, you can alias the command by adding the following line to your `~/.bashrc` file.
`alias vue='winpty vue.cmd'`
If you however want to still use the `vue create hello-world` syntax, you can alias the command by adding the following line to your `~/.bashrc` file.
`alias vue='winpty vue.cmd'`
You will need to restart your Git Bash terminal session to pull in the updated bashrc file.
:::
@@ -73,7 +73,7 @@ The above command will open a browser window with a GUI that guides you through
## Pulling 2.x Templates (Legacy)
Vue CLI 3 uses the same `vue` binary, so it overwrites Vue CLI 2 (`vue-cli`). If you still need the legacy `vue init` functionality, you can install a global bridge:
Vue CLI >= 3 uses the same `vue` binary, so it overwrites Vue CLI 2 (`vue-cli`). If you still need the legacy `vue init` functionality, you can install a global bridge:
``` bash
npm install -g @vue/cli-init
+2
View File
@@ -46,6 +46,8 @@ FOO=bar
VUE_APP_SECRET=secret
```
For more detailed env parsing rules, please refer to [the documentation of `dotenv`](https://github.com/motdotla/dotenv#rules).
Loaded variables will become available to all `vue-cli-service` commands, plugins and dependencies.
::: tip Env Loading Priorities