我正在尝试使用 --serve-path 在该路径下为我的整个应用程序提供服务。例如,我希望我的路径是localhost:4200/foobar我使用的ng serve --serve-path=/foobar/。然后,当我转到该网址时,我的应用程序不会加载,并且出现空白屏幕。
localhost:4200/foobar
ng serve --serve-path=/foobar/
angular-cli
angular-cli ×1