From 50b5b4241532ddbe7053c06818673c8b4c8906cd Mon Sep 17 00:00:00 2001 From: Freddy Montes <751424+fmontes@users.noreply.github.com> Date: Fri, 6 Feb 2026 16:06:53 -0600 Subject: [PATCH 1/2] Bring back modern angular builder for dotcms-ui --- core-web/apps/dotcms-ui/project.json | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/core-web/apps/dotcms-ui/project.json b/core-web/apps/dotcms-ui/project.json index 6d867bd3d39..0f39345a9ca 100644 --- a/core-web/apps/dotcms-ui/project.json +++ b/core-web/apps/dotcms-ui/project.json @@ -6,14 +6,19 @@ "prefix": "dot", "targets": { "build": { - "executor": "@nx/angular:browser-esbuild", + "executor": "@angular-devkit/build-angular:application", + "outputs": ["{options.outputPath.base}"], "options": { "baseHref": "./", - "outputPath": "dist/apps/dotcms-ui", + "outputPath": { + "base": "dist/apps/dotcms-ui", + "browser": "" + }, "index": "apps/dotcms-ui/src/index.html", "main": "apps/dotcms-ui/src/main.ts", - "polyfills": "apps/dotcms-ui/src/polyfills.ts", + "polyfills": ["apps/dotcms-ui/src/polyfills.ts"], "tsConfig": "apps/dotcms-ui/tsconfig.app.json", + "inlineStyleLanguage": "scss", "allowedCommonJsDependencies": [ "lodash", "dragula", @@ -67,13 +72,7 @@ "node_modules/primeng/resources/primeng.min.css", "node_modules/gridstack/dist/gridstack.min.css" ], - "scripts": [ - "node_modules/prismjs/prism.js", - "node_modules/prismjs/components/prism-css.min.js", - "node_modules/prismjs/components/prism-typescript.min.js", - "node_modules/prismjs/components/prism-bash.min.js", - "node_modules/clipboard/dist/clipboard.min.js" - ], + "scripts": [], "stylePreprocessorOptions": { "includePaths": ["libs/dotcms-scss/angular"] }, From ff22206555c2c3bdf33c8290fca7f86262ee0596 Mon Sep 17 00:00:00 2001 From: Freddy Montes <751424+fmontes@users.noreply.github.com> Date: Fri, 6 Feb 2026 16:44:59 -0600 Subject: [PATCH 2/2] clean up --- core-web/apps/dotcms-ui/project.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core-web/apps/dotcms-ui/project.json b/core-web/apps/dotcms-ui/project.json index 0f39345a9ca..f3ed0e9ad3f 100644 --- a/core-web/apps/dotcms-ui/project.json +++ b/core-web/apps/dotcms-ui/project.json @@ -15,7 +15,7 @@ "browser": "" }, "index": "apps/dotcms-ui/src/index.html", - "main": "apps/dotcms-ui/src/main.ts", + "browser": "apps/dotcms-ui/src/main.ts", "polyfills": ["apps/dotcms-ui/src/polyfills.ts"], "tsConfig": "apps/dotcms-ui/tsconfig.app.json", "inlineStyleLanguage": "scss", @@ -76,9 +76,7 @@ "stylePreprocessorOptions": { "includePaths": ["libs/dotcms-scss/angular"] }, - "vendorChunk": true, "extractLicenses": false, - "buildOptimizer": false, "sourceMap": true, "optimization": false, "namedChunks": true @@ -96,8 +94,6 @@ "sourceMap": false, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", @@ -118,8 +114,6 @@ "optimization": false, "sourceMap": false, "namedChunks": false, - "vendorChunk": true, - "buildOptimizer": false, "extractLicenses": false, "fileReplacements": [], "progress": false,