davestewart/nuxt-content-assets

Live reload does not work with Nuxt Image

davestewart opened this issue · 2 comments

Description

Live reload currently does not seem to work with Nuxt Image.

If you edit an image, it reloads for normal images, but not when they're Nuxt Images.

Context

If you refresh the <img> element manually, such as img.src = img.src it does reload.

Nuxt Image appears to serve the image from the original folder, so it seems that the issue is maybe something to do with the watch not referencing the updated path, or something.

Not sure if that's related, but I found that nuxt image does not work at all

The screenshot below is taken from the playground (I did not touch anything, just ran npm i and npm run dev)

image

Thanks for the info!

I haven't looked at the module for a while so it's possible perhaps something in Nuxt image has changed.

I'll have to find the time to take a look.