Skip to content

Commit

Permalink
Update content on image update (#31)
Browse files Browse the repository at this point in the history
* Initial work to log owning documents

* Move nitro plugin to subfolder

* Refactor module and plugin to use single cache manager

* Update types

* Refactor services to sources

* Refactor assets code to assets folder

* Improve sockets code

* Improve ignores functionality

* Reorganise files

* Housekeeping

* Finalise image resizing and watch

* Update version and docs
  • Loading branch information
davestewart authored Apr 20, 2023
1 parent ebea49f commit 80a69ab
Show file tree
Hide file tree
Showing 30 changed files with 6,511 additions and 26,815 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.2.0

- Fix image size change and live-reload [#30](../../issues/30)

## v1.1.2

- Fix non-default watch port [#28](../../issues/28)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ If they do, then the attribute or property is rewritten with the absolute path.

Finally, Nitro serves the site, and any requests made to the transformed asset paths should be picked up and the *copied* asset served by the browser.

In development, file watching propagates asset changes to the public folder, updates related cached content, and notifies the browser via web sockets to refresh any loaded images.

## Development

Should you wish to develop the project, the scripts are:
Expand Down
3 changes: 1 addition & 2 deletions demo/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MountOptions } from '@nuxt/content'
import type { MountOptions } from '@nuxt/content'

// @ts-ignore
const isStackblitz = process.env.GIT_PROXY?.includes('stackblitz')
Expand Down Expand Up @@ -52,4 +52,3 @@ export default defineNuxtConfig({
debug: true,
},
})

Loading

0 comments on commit 80a69ab

Please sign in to comment.