Skip to content

Commit

Permalink
Update harmony.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzebin authored Dec 21, 2023
1 parent 8dd40e3 commit 22d5b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions versioned_docs/version-4.x/harmony.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ $ npm i @tarojs/[email protected]
### 2. 安装 Taro 适配鸿蒙插件

```bash
$ npm i @tarojs/[email protected]
$ npm i @tarojs/plugin-platform-harmony-ets@4.0.0-beta.0
```

### 3. 修改 Taro 编译配置

```js title="config/index.ts"
config = {
// 配置使用插件
plugins: ['@tarojs/plugin-platform-harmony'],
plugins: ['@tarojs/plugin-platform-harmony-ets'],
// harmony 相关配置
harmony: {
// 将编译方式设置为使用 Vite 编译
Expand Down

0 comments on commit 22d5b28

Please sign in to comment.