angular.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "leather-frontend": {
  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/build:application",
  19. "options": {
  20. "browser": "src/main.ts",
  21. "polyfills": [
  22. "zone.js",
  23. "@angular/localize/init"
  24. ],
  25. "tsConfig": "tsconfig.app.json",
  26. "inlineStyleLanguage": "scss",
  27. "assets": [
  28. {
  29. "glob": "**/*",
  30. "input": "public"
  31. }
  32. ],
  33. "styles": [
  34. "src/styles.scss"
  35. ],
  36. "server": "src/main.server.ts",
  37. "outputMode": "server",
  38. "ssr": {
  39. "entry": "src/server.ts"
  40. }
  41. },
  42. "configurations": {
  43. "production": {
  44. "budgets": [
  45. {
  46. "type": "initial",
  47. "maximumWarning": "500kB",
  48. "maximumError": "1MB"
  49. },
  50. {
  51. "type": "anyComponentStyle",
  52. "maximumWarning": "4kB",
  53. "maximumError": "8kB"
  54. }
  55. ],
  56. "outputHashing": "all"
  57. },
  58. "development": {
  59. "optimization": false,
  60. "extractLicenses": false,
  61. "sourceMap": true,
  62. "fileReplacements": [
  63. {
  64. "replace": "src/environments/environment.ts",
  65. "with": "src/environments/environment.development.ts"
  66. }
  67. ]
  68. }
  69. },
  70. "defaultConfiguration": "production"
  71. },
  72. "serve": {
  73. "builder": "@angular/build:dev-server",
  74. "options": {
  75. "proxyConfig": "src/proxy.conf.json"
  76. },
  77. "configurations": {
  78. "production": {
  79. "buildTarget": "leather-frontend:build:production"
  80. },
  81. "development": {
  82. "buildTarget": "leather-frontend:build:development"
  83. }
  84. },
  85. "defaultConfiguration": "development"
  86. },
  87. "extract-i18n": {
  88. "builder": "@angular/build:extract-i18n"
  89. },
  90. "test": {
  91. "builder": "@angular/build:karma",
  92. "options": {
  93. "polyfills": [
  94. "zone.js",
  95. "zone.js/testing",
  96. "@angular/localize/init"
  97. ],
  98. "tsConfig": "tsconfig.spec.json",
  99. "inlineStyleLanguage": "scss",
  100. "assets": [
  101. {
  102. "glob": "**/*",
  103. "input": "public"
  104. }
  105. ],
  106. "styles": [
  107. "src/styles.scss"
  108. ]
  109. }
  110. }
  111. }
  112. }
  113. }
  114. }