spa-webserver
Webserver that redirects to root index.html if path is missing for client-side SPA navigation.
Install
npm install spa-webserver --save
Use
spa-webserver -d './build'
Opts:
-
-d
: root directory (defaults to ./) -
-p
: port (defaults to process.env.PORT)
License
Released under an MIT license.
Related
- link-react: A generalized link component that allows client-side navigation while taking into account exceptions
Other
- memoizerific: Fast, small, efficient JavaScript memoization to memoize JS functions
- todo-app: Example todo app of extreme decoupling of react, redux and selectors