Отсутствует привязка Angular 10 к абсолютному пути из-за переполнения стека. index.html файл

#angular #build #path #absolute

#angular #сборка #путь #абсолютный

Вопрос:

Когда я пытаюсь создать свое приложение, используя абсолютный выходной путь, все компилируется правильно и копирует все файлы, кроме index.html файл отсутствует.

ng build -c homo

если я изменю свойство outputDir на относительный путь, например «dist / homo», index.html файл включен, и все работает нормально.

Я делаю что-то не так?

Мой angular.json:

 "projects": {
        "my-project": {
            "root": "",
            "sourceRoot": "src",
            "projectType": "application",
            "architect": {
                "build": {
                    "builder": "@angular-devkit/build-angular:browser",
                    "options": {
                        "outputPath": "dist",
                        "index": "src/index.html",
                        "main": "src/main.ts",
                        "tsConfig": "src/tsconfig.app.json",
                        "polyfills": "src/polyfills.ts",
                        "assets": [ ... ],
                        "styles": [ ... ],
                        "scripts": [ ... ]
                    },
                    "configurations": {
                        "homo": {
                            "assets": [ ... ],
                            "outputPath": "\\10.10.10.135\custfolder\myProyect",
                            "optimization": false,
                            "outputHashing": "all",
                            "sourceMap": false,
                            "extractCss": true,
                            "namedChunks": false,
                            "aot": true,
                            "extractLicenses": true,
                            "vendorChunk": false,
                            "buildOptimizer": true,
                            "fileReplacements": [{
                                "replace": "src/config/config.ts",
                                "with": "src/config/config.homo.ts"
                            }],
                            "serviceWorker": true,
                            "ngswConfigPath": "ngsw-config.json"
                        },

...
  

Моя версия Angular CLI

 
     _                      _                 ____ _     ___
    /    _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △  | '_  / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ | | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   __| |_|__, |__,_|_|__,_|_|       ____|_____|___|
                |___/
    

Angular CLI: 10.1.2
Node: 14.13.1
OS: win32 x64

Angular: 10.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker, upgrade
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.900.7
@angular-devkit/build-angular   0.1001.2
@angular-devkit/core            10.1.2
@angular-devkit/schematics      10.1.2
@angular/cdk                    10.2.2
@angular/fire                   5.4.2
@angular/pwa                    0.900.7
@schematics/angular             9.0.7
@schematics/update              0.1001.2
rxjs                            6.6.3
typescript                      4.0.3