clear;npm start -- --config config.json
clear;npm start -- --config config.json --key key.pem --cert cert.pem
..\..\node_modules\.bin\http-server
{
"source": "/http:\\/\\/localhost:8080\\/script(.*)\\.js/" ,
"target": "http://localhost:8080/newscript$1.js/"
}
--config
- mandatory
--key
and --cert
=> https
--generate-certs
=> https with new certs
no --key
, --cert
or --generate-certs
=> http