Skip to content

Commit

Permalink
docs: add installation instructions using Vue CLI (#3206)
Browse files Browse the repository at this point in the history
[skip ci]
* docs: add installation instructions using Vue CLI

* Update docs/installation.md

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
  • Loading branch information
gtsiolis and posva authored May 20, 2020
1 parent 1bc23f1 commit f11e531
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ Vue.use(VueRouter)

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

## Vue CLI

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:

```sh
vue add router
```

## Dev Build

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

0 comments on commit f11e531

Please sign in to comment.