You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ yarn global add @vue/cli
14
14
15
15
## Usage
16
16
17
-
####Creating a New Project
17
+
### Creating a New Project
18
18
19
19
```sh
20
20
vue create my-project
21
21
```
22
22
23
-
####Zero-config Prototyping
23
+
### Zero-config Prototyping
24
24
25
25
You can rapidly prototype with just a single `*.vue` file with the `vue serve` and `vue build` commands, but they require an additional global addon to be installed:
26
26
@@ -34,7 +34,7 @@ vue serve
34
34
35
35
The drawback of `vue serve` is that it relies on globally installed dependencies which may be inconsistent on different machines. Therefore this is only recommended for rapid prototyping.
36
36
37
-
####Installing Plugins in an Existing Project
37
+
### Installing Plugins in an Existing Project
38
38
39
39
Each CLI plugin ships with a generator (which creates files) and a runtime plugin (which tweaks the core webpack config and injects commands). When you use `vue create` to create a new project, some plugins will be pre-installed for you based on your feature selection. In case you want to install a plugin into an already created project, simply install it first:
40
40
@@ -50,7 +50,7 @@ vue invoke eslint # the prefix can be omitted
50
50
51
51
It is recommended to commit your project's current state before running `vue invoke`, so that after file generation you can review the changes and revert if needed.
`@vue/cli` uses the same `vue` binary, so it overwrites `[email protected]`. If you still need the legacy `vue init` functionality, you can install a global bridge:
56
56
@@ -60,7 +60,7 @@ yarn global add @vue/cli-init
60
60
vue init webpack my-project
61
61
```
62
62
63
-
####Customization and Plugin Usage
63
+
### Customization and Plugin Usage
64
64
65
65
For a detailed guide on how to customize a project, recipes for common tasks, detailed usage for each plugin, please see the [full documentation](https://github.com/vuejs/vue-cli/blob/dev/docs/README.md).
0 commit comments