Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update content on image update #31

Merged
merged 12 commits into from
Apr 20, 2023
Merged

Conversation

davestewart
Copy link
Owner

This PR solves the issue of image resizing not updating values in cached content.

Currently, if an image is resized, it will trigger a live-reload, but the proportions could be wrong.

Now, when images are first processed, any content they are included in is registered, and when the image is updated in future, the related content is scanned and image sizes manually changed.

This PR also lays the groundwork for #18 where pre-cached content could be tested for relative paths and written back to if any are found.

Note that the work here is waiting for the following PR to be merged and released in Nuxt Content core:

@davestewart davestewart force-pushed the 0030-update-docs-on-image-update branch 7 times, most recently from b7c485f to 313e266 Compare April 18, 2023 10:46
@davestewart davestewart force-pushed the 0030-update-docs-on-image-update branch from 313e266 to 55ff83e Compare April 18, 2023 11:38
@davestewart davestewart linked an issue Apr 19, 2023 that may be closed by this pull request
@davestewart davestewart force-pushed the 0030-update-docs-on-image-update branch from 0463c11 to 755da66 Compare April 20, 2023 11:05
@davestewart davestewart marked this pull request as ready for review April 20, 2023 12:33
@davestewart davestewart merged commit 80a69ab into main Apr 20, 2023
@davestewart davestewart deleted the 0030-update-docs-on-image-update branch April 20, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update related documents when images change
1 participant