Static file server that works with HTML5 Pushstate.
npm install pushstate-serverStatic file server that works with HTML5 Pushstate.
For example, the route /some/pushstate/route will return the index.html file. But, /some/static/path/logo.png will return the logo.png static file.
```
npm install pushstate-server --save
`js
var server = require('pushstate-server');
server.start({
port: 3000,
directory: './public'
});
`
or for multiple directories
`js
var server = require('pushstate-server');
server.start({
port: 4200,
directories: ['./public', './bower_components']
});
`
or bind to a particular host
`js`
server.start({
port: 4200,
host: '192.99.100.01',
directories: ['./public', './bower_components']
});
``
npm install -g pushstate-server
``
usage: pushstate-server [directory] [port] [file]
#### start(options[, callback])
* start the pushstate static file server
##### options
* port process.env.PORT
* set the port that the server should open
* uses if not specified, and defaults to port 9000 if none is availabledirectory
* public
* the path to the directory where the static assets will be served
* defaults to file
* index.html`
* Custom file to serve
* defaults to