|
|
@ -11,22 +11,7 @@ class LocalWebServer extends Lws { |
|
|
|
options = Object.assign({ |
|
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
|
modulePrefix: 'lws-', |
|
|
|
stack: [ |
|
|
|
'lws-request-monitor', |
|
|
|
'lws-log', |
|
|
|
'lws-cors', |
|
|
|
'lws-json', |
|
|
|
'lws-rewrite', |
|
|
|
'lws-body-parser', |
|
|
|
'lws-blacklist', |
|
|
|
'lws-conditional-get', |
|
|
|
'lws-mime', |
|
|
|
'lws-compress', |
|
|
|
'lws-mock-response', |
|
|
|
'lws-spa', |
|
|
|
'lws-static', |
|
|
|
'lws-index' |
|
|
|
] |
|
|
|
stack: require('./default-stack') |
|
|
|
}, options) |
|
|
|
return super.create(options) |
|
|
|
} |
|
|
|