ng 打包给路径添加前缀

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

2.更改ts和html中的路径,将路径改成./xxx/xxx/xxx

 eg:   ./assests/img/backin.img

猜你喜欢

转载自www.cnblogs.com/rockyjs/p/11981876.html