diff --git a/README.md b/README.md
index 77fc8fa..0f02264 100644
--- a/README.md
+++ b/README.md
@@ -203,8 +203,6 @@ serving at http://localhost:8100
## API Reference
-
-## local-web-server
### localWebServer([options]) ⏏
Returns a Koa application
diff --git a/jsdoc2md/README.hbs b/jsdoc2md/README.hbs
index 8de83d8..205605a 100644
--- a/jsdoc2md/README.hbs
+++ b/jsdoc2md/README.hbs
@@ -203,7 +203,12 @@ serving at http://localhost:8100
## API Reference
-{{>main}}
+{{#module name="local-web-server"}}
+{{>body~}}
+{{>member-index~}}
+{{>separator~}}
+{{>members~}}
+{{/module}}
* * *
diff --git a/lib/cli-options.js b/lib/cli-options.js
index ca0b02e..f63a472 100644
--- a/lib/cli-options.js
+++ b/lib/cli-options.js
@@ -29,6 +29,10 @@ module.exports = {
description: 'A list of URL rewrite rules', group: 'server'
},
{
+ name: 'spa', alias: 's', type: String,
+ description: 'Single Page App page', group: 'server'
+ },
+ {
name: 'help', alias: 'h', type: Boolean,
description: 'Print these usage instructions', group: 'misc'
},
diff --git a/lib/local-web-server.js b/lib/local-web-server.js
index 0f2aa04..e50b179 100644
--- a/lib/local-web-server.js
+++ b/lib/local-web-server.js
@@ -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