ng package to add a prefix path

1.ng build --base --href /前缀名/--common - chunk --output-hashing=all --optimization

2. Change in the html ts and the path, the path into ./xxx/xxx/xxx

 eg:   ./assests/img/backin.img

 

Guess you like

Origin www.cnblogs.com/rockyjs/p/11981876.html