Reload a middleware if is modified during development.
npm install koa-reload-middleware
Reload a middleware if is modified during development.
``sh`
yarn
`js
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.