mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 00:22:05 +00:00
19 lines
424 B
JavaScript
19 lines
424 B
JavaScript
module.exports = function () {
|
|
let ctr = 1
|
|
|
|
// Add hook for module
|
|
this.plugin('ready', moduleContainer => {
|
|
this.nuxt.__module_hook = moduleContainer && ctr++
|
|
})
|
|
|
|
// Add hook for renderer
|
|
this.nuxt.plugin('renderer', renderer => {
|
|
this.nuxt.__renderer_hook = renderer && ctr++
|
|
})
|
|
|
|
// Add hook for build
|
|
this.nuxt.plugin('build', builder => {
|
|
this.nuxt.__builder_hook = builder && ctr++
|
|
})
|
|
}
|