@itkyk/static-server
v1.0.0
Published
## Install ```nashorn js npm i -D @itkyk/static-server ```
Downloads
4
Readme
@itkyk/static-server
Install
npm i -D @itkyk/static-server
CLI
server -r ./public
options
| Key | Description | Default | |------------|-----------------|------------| | -r, --root | Open server directory | ./ | | -p, --port | Open server port | 3000 | | --prefix-path | Server PrefixPath | / |
Example
server -r ./dist # Start the server with the dist directory loaded
server -p 4000 # http://localhost:4000
server --prefix-path hoge # http://localhost:3000/hoge