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

  1. 'use strict'
  2. const LocalWebServer = require('../../../')
  3. const liveReload = require('koa-livereload')
  4. const DefaultStack = require('local-web-server-default-stack')
  5. class LiveReloadStack extends DefaultStack {
  6. addAll () {
  7. return this.addLogging('dev')
  8. .add({ middleware: liveReload })
  9. .addStatic()
  10. }
  11. }
  12. module.exports = LiveReloadStack