mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-23 13:29:09 -05:00
feat(ui): api.hasPlugin(id)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user