Skip to content

Commit

Permalink
Angular configuration modernization (#734)
Browse files Browse the repository at this point in the history
* update some configs

* use of ng update @angular/cli --name use-application-builder to use esbuild/vite pipeline & small adjustment for dist

* added  "@angular/localize/init" to polyfill section of angular.json
  • Loading branch information
sMeilbeck authored Nov 29, 2024
1 parent 54b43ed commit 4d1a3d4
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 53 deletions.
25 changes: 14 additions & 11 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/cucumber-frontend",
"outputPath": {
"base": "dist/cucumber-frontend"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"@angular/localize/init",
"src/polyfills.ts"
],
"tsConfig": "./tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand All @@ -40,14 +44,15 @@
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/uikit/dist/js/uikit.min.js",
"./node_modules/uikit/dist/js/uikit-icons.min.js"
]
],
"browser": "src/main.ts"
},
"configurations": {
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
"inlineCritical": true
},
"fonts": true
},
Expand All @@ -70,14 +75,12 @@
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
"extractLicenses": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"options": {
"poll": 2000,
"buildTarget": "cucumber-frontend:build"
Expand All @@ -89,7 +92,7 @@
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "cucumber-frontend:build"
}
Expand Down
Loading

0 comments on commit 4d1a3d4

Please sign in to comment.