Skip to content

Commit

Permalink
feat: add support for nuxt generate
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 22, 2021
1 parent bf31f9b commit 45b284d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Expand Up @@ -26,5 +26,9 @@ export default defineNuxtModule({
nuxt.hook('render:route', async (_url, result) => {
result.html = await critters.process(result.html)
})

nuxt.hook('generate:page', async (result) => {
result.html = await critters.process(result.html)
})
}
})

0 comments on commit 45b284d

Please sign in to comment.