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