We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daaa5bd commit 7aa0863Copy full SHA for 7aa0863
1 file changed
test/fixtures/module/modules/hooks/index.js
@@ -2,7 +2,7 @@ module.exports = function () {
2
let ctr = 1
3
4
// Add hook for module
5
- this.plugin('modules:done', (moduleContainer) => {
+ this.nuxt.hook('modules:done', (moduleContainer) => {
6
this.nuxt.__module_hook = moduleContainer && ctr++
7
})
8
@@ -12,7 +12,7 @@ module.exports = function () {
12
13
14
// Add hook for build
15
- this.nuxt.plugin('build:done', (builder) => {
+ this.nuxt.hook('build:done', (builder) => {
16
this.nuxt.__builder_hook = builder && ctr++
17
18
}
0 commit comments