angular.json 3.6 KB

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