Skip to content

Youjingyu/static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static-server-quick

start http,https,http2 server to serve static resource files from a local directory

usage

npm i static-server-quick -g
# path should be absolute path to static resource directory
static-server <http|https|http2> <absolute-path>

for example

execute in terminal:

static-server http2 /user/project/static

and then, open https://localhost:8091/index.html in browser(there is an index.html in static directory)
If the browser issues a warning, follow the steps below:
step1:
step1
step2:
step2

About

start http,https,http2 server to serve static resource files from a local directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published