angular.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "fatboar": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "app",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-devkit/build-angular:browser",
  19. "options": {
  20. "outputPath": "dist/fatboar/browser",
  21. "index": "src/index.html",
  22. "main": "src/main.ts",
  23. "polyfills": "src/polyfills.ts",
  24. "tsConfig": "tsconfig.app.json",
  25. "aot": true,
  26. "assets": [
  27. "src/favicon.ico",
  28. "src/assets",
  29. "src/manifest.webmanifest"
  30. ],
  31. "styles": [
  32. "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  33. "src/styles.scss"
  34. ],
  35. "scripts": []
  36. },
  37. "configurations": {
  38. "production": {
  39. "fileReplacements": [
  40. {
  41. "replace": "src/environments/environment.ts",
  42. "with": "src/environments/environment.prod.ts"
  43. }
  44. ],
  45. "optimization": {
  46. "scripts": true,
  47. "styles": true
  48. },
  49. "outputHashing": "all",
  50. "sourceMap": false,
  51. "namedChunks": false,
  52. "extractLicenses": true,
  53. "vendorChunk": false,
  54. "buildOptimizer": true,
  55. "budgets": [
  56. {
  57. "type": "initial",
  58. "maximumWarning": "3mb",
  59. "maximumError": "5mb"
  60. },
  61. {
  62. "type": "anyComponentStyle",
  63. "maximumWarning": "6kb",
  64. "maximumError": "10kb"
  65. }
  66. ]
  67. }
  68. }
  69. },
  70. "server": {
  71. "builder": "@angular-devkit/build-angular:server",
  72. "options": {
  73. "outputPath": "dist/fatboar/server",
  74. "main": "server.ts",
  75. "tsConfig": "tsconfig.server.json"
  76. },
  77. "configurations": {
  78. "production": {
  79. "outputHashing": "media",
  80. "fileReplacements": [
  81. {
  82. "replace": "src/environments/environment.ts",
  83. "with": "src/environments/environment.prod.ts"
  84. }
  85. ],
  86. "sourceMap": false,
  87. "optimization": true
  88. }
  89. }
  90. },
  91. "serve": {
  92. "builder": "@angular-devkit/build-angular:dev-server",
  93. "options": {
  94. "browserTarget": "fatboar:build"
  95. },
  96. "configurations": {
  97. "production": {
  98. "browserTarget": "fatboar:build:production"
  99. }
  100. }
  101. },
  102. "prerender": {
  103. "builder": "@nguniversal/builders:prerender",
  104. "options": {
  105. "browserTarget": "fatboar:build:production",
  106. "serverTarget": "fatboar:server:production",
  107. "routes": [
  108. "/"
  109. ]
  110. }
  111. }
  112. }
  113. }
  114. },
  115. "defaultProject": "fatboar",
  116. "cli": {
  117. "analytics": false,
  118. "packageManager": "npm"
  119. }
  120. }