Skip to content

Commit

Permalink
feat: load env vars in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jxhnx authored and ChristophBe committed Oct 18, 2024
1 parent 4bf18f2 commit 1c88c9f
Show file tree
Hide file tree
Showing 4 changed files with 280 additions and 3 deletions.
9 changes: 6 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"outputPath": "dist/federated-catalog-viewer-ui",
"index": "src/index.html",
Expand Down Expand Up @@ -49,13 +49,16 @@
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"namedChunks": true,
"customWebpackConfig": {
"path": "./webpack.config.js"
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular-builders/custom-webpack:dev-server",
"configurations": {
"production": {
"buildTarget": "federated-catalog-viewer-ui:build:production"
Expand Down
249 changes: 249 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
"zone.js": "~0.14.10"
},
"devDependencies": {
"@angular-builders/custom-webpack": "^18.0.0",
"@angular-devkit/build-angular": "^18.2.7",
"@angular/cli": "^18.2.7",
"@angular/compiler-cli": "^18.2.0",
"@types/jasmine": "~5.1.0",
"angular-eslint": "18.3.1",
"dotenv-webpack": "^8.1.0",
"eslint": "^9.9.1",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
Expand Down
Loading

0 comments on commit 1c88c9f

Please sign in to comment.