feat(ui): api.hasPlugin(id)

This commit is contained in:
Guillaume Chau
2018-06-11 00:42:53 +02:00
parent be3d538d24
commit 8fae98e7ce
4 changed files with 29 additions and 2 deletions
+12
View File
@@ -1039,6 +1039,18 @@ There are some builtin icons:
- `'done'`
- `'error'`
## Other plugins
### hasPlugin
Returns `true` if the project uses the plugin.
```js
api.hasPlugin('eslint')
api.hasPlugin('apollo')
api.hasPlugin('vue-cli-plugin-apollo')
```
## Hooks
Hooks allows to react to certain cli-ui events.