Skip to content

Commit

Permalink
Update README.md of vue-playground
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright authored Jul 22, 2023
1 parent b8465a7 commit 793f026
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions vue-playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,35 @@ npm install
```
npm run serve
```

### How to debug the vue syntax code in playground

`App.vue`

```diff
data() {
return {
CustomLayout: markRaw(CustomLayout),
loading: true,
count: 2,
VSurface,
VRect,
VCircle,
VRoundRect,
VLine,
VPoints,
code,
LoadingCode,
- debug: false,
+ debug: true,
error: undefined,
};
},
```

### How to debug the wasm in vue-playgrounnd

```shell
$ rm -rf {YOUR_PROJECT_WORK_SPACE}/vue-playground/node_modules/vue-skia/soft-skia-wasm/pkg
$ ln -s {YOUR_PROJECT_WORK_SPACE}/soft-skia-wasm/pkg {YOUR_PROJECT_WORK_SPACE}/vue-playground/node_modules/vue-skia/soft-skia-wasm/pkg
```

0 comments on commit 793f026

Please sign in to comment.