Skip to content

jameslnewell/koa-reload-middleware

Repository files navigation

koa-reload-middleware

CircleCI

Reload a middleware if is modified during development.

Installation

yarn

Usage

import Koa from 'koa';
import reload from 'koa-reload-middleware';

new Koa().use(reload(() => import('./route'))).listen();

Now change ./route and the next time that the route is requested, the route will be reloaded without the entire server restarting.

About

Reload middleware if it changes during development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published