Skip to content

Support for live-reload

Latest

Choose a tag to compare

@matthewp matthewp released this 19 Mar 12:03
· 2 commits to master since this release

This is a minor release adding support for live-reload on the error page. Use it like so:

let parts = errorFormat.extract(error);
let html = errorFormat.html(parts, {
	liveReload: {
		port: 8012
	}
})

And the error page will reload when given a notice from the live-reload server. See the docs for more information.