added --spa to cli options
This commit is contained in:
@ -130,7 +130,7 @@ function localWebServer (options) {
|
||||
if (options.spa) {
|
||||
const send = require('koa-send')
|
||||
app.use(_.all('*', function * () {
|
||||
yield send(this, options.spa, { root: options.static.root || process.cwd() })
|
||||
yield send(this, options.spa, { root: path.resolve(options.static.root) || process.cwd() })
|
||||
}))
|
||||
}
|
||||
return app
|
||||
|
Reference in New Issue
Block a user