Skip to content

Commit a3a58e7

Browse files
authored
Merge pull request #16 from JasinYip/doc/build-api-return-promise
doc: mpvueSimple.build returns a Promise now!
2 parents f42a025 + 737641a commit a3a58e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/mpvue/simple.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ mpvueSimple.build({
4545
output: 'mp-pages',
4646
pageName: 'login'
4747
})
48+
49+
// maybe you want to do something after building
50+
mpvueSimple.build() // => Promise
51+
.then(() => console.log('mpvue build success'))
52+
.catch(err => throw new Error(err))
4853
```
4954

5055
#### API

0 commit comments

Comments
 (0)