update stack examples and deps

This commit is contained in:
Lloyd Brookes
2016-06-25 15:24:30 +01:00
parent 6440486b0c
commit 99f5b19d27
11 changed files with 60 additions and 87 deletions

View File

@ -5,7 +5,6 @@ const path = require('path')
const arrayify = require('array-back')
const t = require('typical')
const CommandLineTool = require('command-line-tool')
const DefaultStack = require('local-web-server-default-stack')
/**
* @module local-web-server
@ -30,7 +29,7 @@ class LocalWebServer {
if (/^-/.test(stackPath)) stackPath = null
}
const stackModule = loadStack(stackPath) || DefaultStack
const stackModule = loadStack(stackPath) || require('local-web-server-default-stack')
this.stack = new stackModule()
this.stack.addAll()
const middlewareOptionDefinitions = this.stack.getOptionDefinitions()