Skip to content

A command line tool which starts a static server for testing front-end web page

Notifications You must be signed in to change notification settings

McCarthey/web-static-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-static-cmd

A command line tool which starts a static server for testing front-end web page

You should install it globally

npm i web-static-cmd -g
cd [your project dist/public dir]
sss -s

then a static server starts on http://localhost:8088

optional arguments

You can use -p to set a proxy for your webapp

for example:

sss -s -p //api http://www.example.com

You can use -h to get help

sss -h

Also, you can set pathRewrite option by inputing another 2 arguments after -p,like this:

sss -s -p //api http://www.example.com //api //

About

A command line tool which starts a static server for testing front-end web page

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published