Skip to content

Commit

Permalink
Merge pull request #1747 from didi/docs-mpx-cli
Browse files Browse the repository at this point in the history
Docs mpx cli
  • Loading branch information
hiyuki authored Dec 18, 2024
2 parents 6263da8 + 4c1f358 commit e7988e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs-vuepress/api/compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ mode 为 Mpx 编译的目标平台, 目前支持的有微信小程序(wx)\支
// 项目 package.json
{
"script": {
"build:cross": "mpx-cli-service build:mp --targets=wx,ali"
"build:cross": "mpx-cli-service build --targets=wx,ali"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs-vuepress/guide/advance/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ new MpxwebpackPlugin({
// 项目 package.json
{
"script": {
"build:cross": "mpx-cli-service build:mp --targets=wx,ali"
"build:cross": "mpx-cli-service build --targets=wx,ali"
}
}
```
Expand Down
4 changes: 3 additions & 1 deletion docs-vuepress/guide/basic/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
npm i -g @mpxjs/cli
```

> @mpxjs/cli文档 https://github.com/mpx-ecology/mpx-cli
## 创建项目安装依赖

在当前目录下创建mpx项目。
Expand All @@ -29,7 +31,7 @@ npm install
## 编译构建

使用npm script执行mpx的编译构建,在开发模式下我们执行watch命令,将项目源码构建输出到`dist/${平台目录}`下,并且监听源码的改动进行重新编译。
使用npm script执行mpx的编译构建,在开发模式下我们执行serve命令,将项目源码构建输出到`dist/${平台目录}`下,并且监听源码的改动进行重新编译。

```shell
npm run serve
Expand Down
2 changes: 1 addition & 1 deletion docs-vuepress/guide/platform/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ new MpxwebpackPlugin({
// 项目 package.json
{
"script": {
"build:cross": "mpx-cli-service build:mp --targets=wx,ali,ios,android"
"build:cross": "mpx-cli-service build --targets=wx,ali,ios,android"
}
}
```
Expand Down

0 comments on commit e7988e0

Please sign in to comment.