You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
293 B
14 lines
293 B
'use strict'
|
|
const Koa = require('koa')
|
|
const localWebServer = require('../')
|
|
const liveReload = require('koa-livereload')
|
|
const convert = require('koa-convert')
|
|
|
|
const app = new Koa()
|
|
const ws = localWebServer({
|
|
log: { format: 'dev' }
|
|
})
|
|
|
|
app.use(liveReload())
|
|
app.use(ws)
|
|
app.listen(8000)
|