Skip to content

Commit

Permalink
fix(plugin api): task hooks (non-vue cli project)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jul 25, 2018
1 parent 0521818 commit 0ee1983
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vue/cli-ui/apollo-server/connectors/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0ee1983

Please sign in to comment.