Skip to content

Commit 8714f79

Browse files
committed
更新readme
1 parent e1a940e commit 8714f79

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
# vue-webpack
1+
# 介绍
22

3-
> A Vue.js project integrated with webpack vuex vue-router and express
3+
> Vue服务端路由(express router)+前端路由(vue-router)结合的Demo,支持多页面和前端单页
44
5-
## Build Setup
5+
## 使用方式
66

77
``` bash
8-
# install dependencies
8+
# 安装依赖
9+
npm install -g babel
10+
npm install -g webpack
911
npm install
1012

11-
# serve with hot reload at localhost:3000
13+
# 启动调试
1214
npm run dev
1315

14-
# build for production with minification
15-
npm run build:dev
16+
# 打开浏览器访问 http://localhost:3000, 支持hot reload
17+
18+
# 编译工程
1619
npm run build:prod
1720

1821
```
19-
For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
22+
23+
> 注意: 多页面的情况下是共享vendor.js的,所以建议将一些比较大的js库放在cdn上单独加载, debug模式下编译出来的vendor是比较大的, build:prod后会小很多
24+

0 commit comments

Comments
 (0)