|
@ -11,22 +11,7 @@ class LocalWebServer extends Lws { |
|
|
options = Object.assign({ |
|
|
options = Object.assign({ |
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
modulePrefix: 'lws-', |
|
|
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) |
|
|
}, options) |
|
|
return super.create(options) |
|
|
return super.create(options) |
|
|
} |
|
|
} |
|
|