manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

Angular v15.2.0 --single-bundle not working #385

Closed edgarjoao closed 1 year ago

edgarjoao commented 1 year ago

Hi team, I'm trying to generate a bundle file but it's not working with Angular v15.2.0.

    "mfe-build": {
          "builder": "ngx-build-plus:browser",
          "options": {
            "outputPath": "dist/sales",
            "index": "src/index.html",
            "main": "src/mfe-app.main.ts",
            "polyfills": [
              "zone.js"
            ],
            "tsConfig": "tsconfig.mfe.json",
            "inlineStyleLanguage": "scss",
            "assets": [
              "src/favicon.ico",
              "src/assets",
              "src/configmaps"
            ],
            "styles": [
              "src/styles.scss"
            ],
            "scripts": [
            ],
            "aot": true,
            "buildOptimizer": true,
            "optimization": true,
            "sourceMap": false,
            "namedChunks": false,
            "extractLicenses": true,
            "vendorChunk": false,
            "keepPolyfills": false,
            "keepStyles": false,
            "singleBundle": true,
            "outputHashing": "none"
          },
          "configurations": {
            "production": {
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ],
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ]
            }
          }
        },
image

In the screenshot you will see the separated files.

Any advice here?