我跑:
ng build --watch --base-href /homeWork/
问题是,如果我在没有 VPN 的情况下运行这个命令,它就可以工作,但是如果我在 vpn 中运行这个命令,我会得到这个错误:
✖ Index html generation failed.
我的 angular.json 是:
/*
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"index": "src/index.html",
"main": "src/main.ts",
},
"configurations": {
"production": {
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},*/
任何人都可以帮助解决这个问题?