How should I configure the base href for Angular 2 when using Electron?

后端 未结 2 786
谎友^
谎友^ 2021-02-18 16:26

I need to either set in the HTML or APP_BASE_HREF during the bootstrap for Angular 2 to not throw exceptions. If I set either of these the

2条回答
  •  不思量自难忘°
    2021-02-18 17:13

    In a clean way, You can ONLY customize your build command without editing the value of inside your index.html page

    ng build --prod --base-href=./
    

提交回复
热议问题