|
|
@ -11,7 +11,7 @@ const Lws = require('lws') |
|
|
|
class LocalWebServer extends Lws { |
|
|
|
constructor () { |
|
|
|
const path = require('path') |
|
|
|
const stack = [ 'log', 'cors', 'json', 'rewrite', 'body-parser', 'blacklist', 'conditional-get', 'mime', 'compress', 'static', 'index' ].map(name => { |
|
|
|
const stack = [ 'log', 'cors', 'json', 'rewrite', 'body-parser', 'blacklist', 'conditional-get', 'mime', 'compress', 'mock-response', 'spa', 'static', 'index' ].map(name => { |
|
|
|
return path.resolve(__dirname, `../node_modules/local-web-server-${name}`) |
|
|
|
}) |
|
|
|
super({ stack }) |
|
|
|