以下似乎没有做任何事情.
ng serve --ssl true --ssl-key <key-path> --ssl-cert <cert-path>
通过在默认的ssl目录中提供证书和密钥仍然无效.它看起来ng server完全忽略了--ssl参数并继续说NG Live Development Server is running on http://localhost:4200.
ng server
--ssl
NG Live Development Server is running on http://localhost:4200.
https angular-cli angular
angular ×1
angular-cli ×1
https ×1