|
@@ -4,13 +4,13 @@
|
4
|
4
|
|
5
|
5
|
**Live demo:** http://panjiachen.github.io/vue-admin-template
|
6
|
6
|
|
7
|
|
-[中文文档](https://github.com/PanJiaChen/vue-admin-template /blob/master/README-zh.md)
|
|
7
|
+[中文文档](https://github.com/PanJiaChen/vue-admin-template/blob/master/README-zh.md)
|
8
|
8
|
|
9
|
9
|
## Build Setup
|
10
|
10
|
|
11
|
11
|
```bash
|
12
|
12
|
# Clone project
|
13
|
|
-git clone https://github.com/PanJiaChen/vue-admin-template .git
|
|
13
|
+git clone https://github.com/PanJiaChen/vue-admin-template.git
|
14
|
14
|
|
15
|
15
|
# Install dependencies
|
16
|
16
|
npm install
|
|
@@ -33,9 +33,9 @@ https://panjiachen.gitee.io/vue-element-admin-site/zh/guide/
|
33
|
33
|
|
34
|
34
|
## Extra
|
35
|
35
|
|
36
|
|
-If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template /tree/permission-control)
|
|
36
|
+If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template/tree/permission-control)
|
37
|
37
|
|
38
|
|
-This project is based on `webpack4` development. If you want to use `webpack3` development, please use this branch [webpack3](https://github.com/PanJiaChen/vue-admin-template /tree/webpack3)
|
|
38
|
+This project is based on `webpack4` development. If you want to use `webpack3` development, please use this branch [webpack3](https://github.com/PanJiaChen/vue-admin-template/tree/webpack3)
|
39
|
39
|
|
40
|
40
|
## Related Project
|
41
|
41
|
|
|
@@ -45,11 +45,11 @@ This project is based on `webpack4` development. If you want to use `webpack3` d
|
45
|
45
|
|
46
|
46
|
### Element-Ui using cdn tutorial
|
47
|
47
|
|
48
|
|
-First find `index.html`([root directory](https://github.com/PanJiaChen/vue-admin-template /blob/element-ui-cdn/index.html))
|
|
48
|
+First find `index.html`([root directory](https://github.com/PanJiaChen/vue-admin-template/blob/element-ui-cdn/index.html))
|
49
|
49
|
|
50
|
50
|
Import css and js of `Element`, and then import vue. Because `Element` is vue-dependent, vue must be import before it.
|
51
|
51
|
|
52
|
|
-Then find [webpack.base.conf.js](https://github.com/PanJiaChen/vue-admin-template /blob/element-ui-cdn/build/webpack.base.conf.js)
|
|
52
|
+Then find [webpack.base.conf.js](https://github.com/PanJiaChen/vue-admin-template/blob/element-ui-cdn/build/webpack.base.conf.js)
|
53
|
53
|
Add `externals` to make webpack not package vue and element.
|
54
|
54
|
|
55
|
55
|
```
|
|
@@ -67,12 +67,12 @@ And you can use `npm run build --report` to see the effect
|
67
|
67
|
Pictured:
|
68
|
68
|

|
69
|
69
|
|
70
|
|
-**[Detailed code](https://github.com/PanJiaChen/vue-admin-template /commit/746aff560932704ae821f82f10b8b2a9681d5177)**
|
|
70
|
+**[Detailed code](https://github.com/PanJiaChen/vue-admin-template/commit/746aff560932704ae821f82f10b8b2a9681d5177)**
|
71
|
71
|
|
72
|
|
-**[Branch](https://github.com/PanJiaChen/vue-admin-template /tree/element-ui-cdn)**
|
|
72
|
+**[Branch](https://github.com/PanJiaChen/vue-admin-template/tree/element-ui-cdn)**
|
73
|
73
|
|
74
|
74
|
## License
|
75
|
75
|
|
76
|
|
-[MIT](https://github.com/PanJiaChen/vue-admin-template /blob/master/LICENSE) license.
|
|
76
|
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
|
77
|
77
|
|
78
|
78
|
Copyright (c) 2017-present PanJiaChen
|