diff --git a/angular.json b/angular.json index 5725e24a..a7a0a336 100644 --- a/angular.json +++ b/angular.json @@ -36,12 +36,15 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/portfolio", + "outputPath": { + "base": "dist/portfolio" + }, "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "polyfills": [ + "src/polyfills.ts" + ], "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", @@ -54,7 +57,8 @@ "scripts": [], "allowedCommonJsDependencies": [ "xml2js" - ] + ], + "browser": "src/main.ts" }, "configurations": { "production": { @@ -79,9 +83,7 @@ "outputHashing": "all" }, "development": { - "vendorChunk": true, "extractLicenses": false, - "buildOptimizer": false, "sourceMap": true, "optimization": false, "namedChunks": true diff --git a/tsconfig.json b/tsconfig.json index 01a2dd67..2fc47ae1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,11 +5,11 @@ "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, "strict": true, + "esModuleInterop": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "sourceMap": true, "declaration": false, - "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, @@ -17,7 +17,6 @@ "noUnusedParameters": true, "target": "ES2022", "module": "es2020", - "allowSyntheticDefaultImports": true, "typeRoots": [ "node_modules/@types" ],