mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-19 22:00:20 -06:00
fix(plugin api): task hooks (non-vue cli project)
This commit is contained in:
@@ -249,6 +249,7 @@ function getApi (folder) {
|
||||
|
||||
function callHook ({ id, args, file }, context) {
|
||||
const pluginApi = getApi(file)
|
||||
if (!pluginApi) return
|
||||
const fns = pluginApi.hooks[id]
|
||||
log(`Hook ${id}`, fns.length, 'handlers')
|
||||
fns.forEach(fn => fn(...args))
|
||||
|
||||
Reference in New Issue
Block a user