Reload

Middleware for live-reload in the browser

Options

watcher object

The watcher instance to use

basepath string

The base path of the site. It's required by the reload script

debugBar object

The debug bar instance to use

collections object[]

Description

Middleware to implement a live-reload in the browser after file changes. It's used by Lume in the --serve mode.

Installation

This middleware is intended for local development and it's used by default by Lume in the --serve mode.