web-server
A minimalist web server.
Environment
Node.js >= 10
Install
$ npm install @mbears/web-server -g
Example
You can run web-server
in project directory to start a simple server.
# simple demo
$ web-server
# custom port.default:3000
$ web-server --port 8888
# custom path.default:index.html
$ web-server --path ./dist
# HTML5 history mode
$ web-server --history
# publicPath
$ web-server --publicPath
# cache mode.default:3600s
$ web-server --cache
# custom cache time(s)
$ web-server --cache 2000
License
MIT