Skip to content

Gopikrishna19/static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimal express static server

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors