mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-29 16:30:33 -05:00
feat(plugin api): task match can now be a function
This commit is contained in:
@@ -350,6 +350,14 @@ api.describeTask({
|
||||
})
|
||||
```
|
||||
|
||||
You can also use a function for `match`:
|
||||
|
||||
```js
|
||||
api.describeTask({
|
||||
match: (command) => /vue-cli-service serve/.test(command),
|
||||
})
|
||||
```
|
||||
|
||||
### Task icon
|
||||
|
||||
It can be either a [Material icon](https://material.io/tools/icons) code or a custom image (see [Public static files](#public-static-files)):
|
||||
|
||||
Reference in New Issue
Block a user