File tree Expand file tree Collapse file tree 3 files changed +31
-12
lines changed Expand file tree Collapse file tree 3 files changed +31
-12
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ See [dist folder](https://github.com/vuejs/vue-router/tree/dev/dist). Note the d
12
12
13
13
``` bash
14
14
npm install vue-router
15
- # dev branch
16
- npm install vuejs/vue-router#dev
17
15
```
18
16
19
17
When used in CommonJS, you must explicitly install the router via ` Vue.use() ` :
@@ -27,10 +25,19 @@ Vue.use(VueRouter)
27
25
28
26
You don't need to do this when using the standalone build because it installs itself automatically.
29
27
28
+ ### Dev Build
29
+
30
+ You will have to clone directly from GitHub and build ` vue-router ` yourself if you want to use the latest dev build.
31
+
32
+ ``` bash
33
+ git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
34
+ cd node_modules/vue-router
35
+ npm install
36
+ npm run build
37
+ ```
38
+
30
39
### Bower
31
40
32
41
``` bash
33
42
bower install vue-router
34
- # dev branch
35
- bower install vuejs/vue-router#dev
36
43
```
Original file line number Diff line number Diff line change 12
12
13
13
``` bash
14
14
npm install vue-router
15
- # dev ブランチ
16
- npm install vuejs/vue-router#dev
17
15
```
18
16
19
17
CommonJS で使用されるとき、明示的に ` Vue.use() ` 経由でルータはインストールされなければなりません:
@@ -27,10 +25,17 @@ Vue.use(VueRouter)
27
25
28
26
スタンドアロンビルドを使用しているときは、それ自身自動的にインストールされるため、これを実行する必要はありません。
29
27
28
+ ### Dev ブランチ
29
+
30
+ ``` bash
31
+ git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
32
+ cd node_modules/vue-router
33
+ npm install
34
+ npm run build
35
+ ```
36
+
30
37
### Bower
31
38
32
39
``` bash
33
40
bower install vue-router
34
- # dev ブランチ
35
- bower install vuejs/vue-router#dev
36
41
```
Original file line number Diff line number Diff line change 12
12
13
13
``` bash
14
14
npm install vue-router
15
- # dev branch
16
- npm install vuejs/vue-router#dev
17
15
```
18
16
19
17
如果使用 CommonJS 模块规范, 需要显式的使用 ` Vue.use() ` 安装路由模块:
@@ -27,10 +25,19 @@ Vue.use(VueRouter)
27
25
28
26
使用独立编译文件是不需要这样做,因为路由模块会自动安装。
29
27
28
+ ### Dev Build
29
+
30
+ 如果想要使用最新的 dev 版本,需要直接从 GitHub clone 然后自己构建。
31
+
32
+ ``` bash
33
+ git clone https://github.com/vuejs/vue-router.git node_modules/vue-router
34
+ cd node_modules/vue-router
35
+ npm install
36
+ npm run build
37
+ ```
38
+
30
39
### Bower
31
40
32
41
``` bash
33
42
bower install vue-router
34
- # dev branch
35
- bower install vuejs/vue-router#dev
36
43
```
You can’t perform that action at this time.
0 commit comments