Angular 2 CLI - php 用于索引文件而不是 html 文件

Angular 2 CLI - php for index file instead of html file

有没有办法将通过 Angular 2 CLI 创建和服务的 Angular 2 应用程序从默认 html 文件更改为 php 文件?是否有某个设置确定使用 ng serve 命令作为默认索引文件?

MBU

似乎 angular cli 不允许您将默认文件名设置为与 index.html 不同的名称。

即使可以更改为 index.php,您也不会完成您想要的。要 运行 php 个文件,您需要 PHP 个解释器。 ng serve 中没有这样的东西,因为它的主要目的是提供静态 HTML 文件。