如何解决npm-live-server https命令行配置?
我正在通过命令行运行实时服务器:
live-server --port=8282 --host=192.168.1.231 --https=/home/.nvm/versions/node/v14.8.0/lib/node_modules/live-server-https --entry-file=/index.html
我想添加自己的证书,如下例所示:
{
"liveServer.settings.https": {
"enable": true,//set it true to enable the feature.
"cert": "D:\\https\\primary.crt",//full path of the certificate
"key": "D:\\https\\private.key",//full path of the private key
"passphrase": "12345"
}
}
.live-server.json或cmd行参数中的正确格式是什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。