Skip to content

Commit b7a7c06

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # config/index.js # package.json # src/main.js # src/pages/userCenter/index.vue
2 parents c449c9c + d8c4504 commit b7a7c06

File tree

8 files changed

+8041
-2745
lines changed

8 files changed

+8041
-2745
lines changed

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
# jg_wxapp
1+
### 使用教程
22

3-
> A Vue.js project
3+
第一步 克隆项目到本地
44

5-
## Build Setup
5+
git clone https://github.com/noahlam/mpvue-tutorials.git
66

7-
``` bash
8-
# install dependencies
9-
npm install
7+
第二步 安装项目依赖
108

11-
# serve with hot reload at localhost:8080
12-
npm run dev
9+
// 前提肯定是要进入项目目录啦 cd mpvue-tutorials
10+
npm i
1311

14-
# build for production with minification
15-
npm run build
12+
第三步 启动开发环境,并监控文件改动,实时编译
1613

17-
# build for production and view the bundle analyzer report
18-
npm run build --report
19-
```
14+
npm run dev
2015

21-
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).
16+
第四步 打开你的微信开发者工具,新建一个小程序,项目目录指向`mpvue-tutorials/dist`,就可以看到效果了
17+
18+
19+
第五步 在`src/pages`目录下添加或者改动页面,查看效果
20+
如果是添加页面,需要在 `src/main.js` 里面添加对应的路由
21+
22+
### 发布项目
23+
npm run build
24+
打包的文件,跟` npm run dev`一样,也是放在`mpvue-tutorials/dist`中,同时,发布的是需要注意以下几点
25+
1. 如果之前有 `npm run dev` 那么在发布之前,请先停止dev。
26+
2. 如果打包之后,控制台有报错,请关闭微信开发者工具的 es6代码转换,代码压缩。

0 commit comments

Comments
 (0)