Skip to content

Commit f11e531

Browse files
gtsiolisposva
andauthored
docs: add installation instructions using Vue CLI (#3206)
[skip ci] * docs: add installation instructions using Vue CLI * Update docs/installation.md Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 1bc23f1 commit f11e531

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: docs/installation.md

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Vue.use(VueRouter)
3232

3333
You don't need to do this when using global script tags.
3434

35+
## Vue CLI
36+
37+
If you have a project using [Vue CLI](https://cli.vuejs.org/) you can add Vue Router as a plugin. You can let the CLI generate the code above for you as well as two sample routes. **It will also overwrite your `App.vue`** so make sure to backup up the file before running the following command inside your project:
38+
39+
```sh
40+
vue add router
41+
```
42+
3543
## Dev Build
3644

3745
You will have to clone directly from GitHub and build `vue-router` yourself if

0 commit comments

Comments
 (0)