Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const KoaWebpack = require('koa-webpack')
- const app = new Koa()
- app.use(myApi) // server side code
- const server = app.listen(3000)
- const webpackMiddleware = KoaWebpack(config, hotClient: { server })
- app.use(webpackMiddleware)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement