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
357 B
14 lines
357 B
'use strict'
|
|
const LocalWebServer = require('../../../')
|
|
const liveReload = require('koa-livereload')
|
|
const DefaultStack = require('local-web-server-default-stack')
|
|
|
|
class LiveReloadStack extends DefaultStack {
|
|
addAll () {
|
|
return this.addLogging('dev')
|
|
.add({ middleware: liveReload })
|
|
.addStatic()
|
|
}
|
|
}
|
|
|
|
module.exports = LiveReloadStack
|