angular.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. "src/robots.txt",
  31. "src/sitemap.xml"
  32. ],
  33. "styles": [
  34. "node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  35. "node_modules/leaflet/dist/leaflet.css",
  36. "src/styles.scss"
  37. ],
  38. "scripts": []
  39. },
  40. "configurations": {
  41. "production": {
  42. "fileReplacements": [
  43. {
  44. "replace": "src/environments/environment.ts",
  45. "with": "src/environments/environment.prod.ts"
  46. }
  47. ],
  48. "optimization": {
  49. "scripts": true,
  50. "styles": true
  51. },
  52. "outputHashing": "all",
  53. "sourceMap": false,
  54. "namedChunks": false,
  55. "extractLicenses": true,
  56. "vendorChunk": false,
  57. "buildOptimizer": true,
  58. "budgets": [
  59. {
  60. "type": "initial",
  61. "maximumWarning": "3mb",
  62. "maximumError": "5mb"
  63. },
  64. {
  65. "type": "anyComponentStyle",
  66. "maximumWarning": "6kb",
  67. "maximumError": "10kb"
  68. }
  69. ]
  70. }
  71. }
  72. },
  73. "server": {
  74. "builder": "@angular-devkit/build-angular:server",
  75. "options": {
  76. "outputPath": "dist/fatboar/server",
  77. "main": "server.ts",
  78. "tsConfig": "tsconfig.server.json"
  79. },
  80. "configurations": {
  81. "production": {
  82. "outputHashing": "media",
  83. "fileReplacements": [
  84. {
  85. "replace": "src/environments/environment.ts",
  86. "with": "src/environments/environment.prod.ts"
  87. }
  88. ],
  89. "sourceMap": false,
  90. "optimization": true
  91. }
  92. }
  93. },
  94. "serve": {
  95. "builder": "@angular-devkit/build-angular:dev-server",
  96. "options": {
  97. "browserTarget": "fatboar:build"
  98. },
  99. "configurations": {
  100. "production": {
  101. "browserTarget": "fatboar:build:production"
  102. }
  103. }
  104. },
  105. "prerender": {
  106. "builder": "@nguniversal/builders:prerender",
  107. "options": {
  108. "browserTarget": "fatboar:build:production",
  109. "serverTarget": "fatboar:server:production",
  110. "routes": [
  111. "/",
  112. "/concours",
  113. "/menus",
  114. "/contact"
  115. ]
  116. }
  117. }
  118. }
  119. }
  120. },
  121. "defaultProject": "fatboar",
  122. "cli": {
  123. "analytics": false,
  124. "packageManager": "npm"
  125. }
  126. }