我想为 Angular 7 创建 webpack 配置。我遵循了以下教程 - http://opensourceforgeeks.blogspot.com/2018/12/how-to-customize-build-configuration.html。我正在使用 - @angular-builders 包我还检查了我的 index.html,它包含基本 href
我在 angular.json 中更改了以下内容 -
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"baseHref": "/v2/",....
"serve": {
"builder": "@angular-builders/dev-server:generic",....