1.0.12 • Published 9 years ago
spa-host v1.0.12
SPA Host
Easily host applications that have a default file to route requests through, yet need to override a set of folders
Installation
$ npm install -g spa-hostRun in the root of your project
$ spahost index.html styles scriptsRun on a specific port (5000 in this case)
$ PORT=5000 spahost index.html styles scriptsThis will run a server which routes all traffic to index.html unless it starts with /styles or /scripts.