koa-parcel-middleware
parcel middleware for koa
why
parcel middleware enables you to:
- wire in advanced features, such as server-side-rendering. isomorphic js in compact form
- serve your ui application from your server application
- combine the parcel dev server functionality with an existing server application, rather than an extra process
install
yarn add koa-parcel-middleware koa koa-static
koa and koa-static are required peerDependencies
. koa-static is required such that
non-js assets (e.g. css, images, etc) may be served gracefully as requested by your ui.
usage
the following is a rich, complete example of using the middleware api.
// your parcel application's _unbuilt_ entry point! start