@gs-utils/static-server
v0.2.2
Published
Express static server with logging
Downloads
4
Readme
static-server
Installation
npm i @gs-utils/static-server
Running
npx
npx static-server [-p @gs-utils/static-server] [--port <number|8080>] [--livereload <boolean|true>] [--serve <folderPath|src>]
package.json
{
"scripts": {
"start": "static-server"
}
}
Options
--port
Defaults to 8080
npx static-server --port 9090
--serve
Defaults to src
. Can take multiple values.
npx static-server --serve public
npx static-server --serve public --serve assets
--livereload
Defaults to true
. Install livereload extension to enable it. To disable:
npx static-server --livereload false