1.0.0 • Published 1 year ago
@itkyk/static-server v1.0.0
@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
1.0.0
1 year ago