davestewart / nuxt-content-assets

Enable locally-located assets in Nuxt Content
https://npmjs.com/package/nuxt-content-assets
108 stars 7 forks source link

Refactor assets cache to support Nuxt Image via layers #78

Closed davestewart closed 2 months ago

davestewart commented 2 months ago

This PR is yet another attempt to support Nuxt Image, by way of layers.

It fixes the previous attempt by moving the assets cache from .nuxt/content-assets to node_modules/nuxt-content-assets/cache which should always be available, even during generate.

This implementation works in the playground, but additional scripting is needed to simulate the node_modules cache folder, as in development, the module is actually loaded from ../src.

Closes #76