Closed pi0 closed 5 years ago
Hi @arash16.
I really like what you did for implementing renderer-level caching for Nuxt. Nice job :+1:
Nuxt.js is designed to be extended via modules. While providing API for using programmatically I highly recommend implementing it as a module.
Read more: https://nuxtjs.org/guide/modules
Change should not be really hard. The module exports a function which has access to all internals:
import { cacheRenderer } from './middleware' export default function (options) { cacheRenderer(this.nuxt, options) }
Happy hacking :)
Thanks @pi0 I fixed it :+1:
Clever refactor :+1:
Hi @arash16.
I really like what you did for implementing renderer-level caching for Nuxt. Nice job :+1:
Nuxt.js is designed to be extended via modules. While providing API for using programmatically I highly recommend implementing it as a module.
Read more: https://nuxtjs.org/guide/modules
Change should not be really hard. The module exports a function which has access to all internals:
Happy hacking :)