angular.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. },
  37. "configurations": {
  38. "production": {
  39. "budgets": [
  40. {
  41. "type": "initial",
  42. "maximumWarning": "500kB",
  43. "maximumError": "1MB"
  44. },
  45. {
  46. "type": "anyComponentStyle",
  47. "maximumWarning": "4kB",
  48. "maximumError": "8kB"
  49. }
  50. ],
  51. "outputHashing": "all"
  52. },
  53. "development": {
  54. "optimization": false,
  55. "extractLicenses": false,
  56. "sourceMap": true,
  57. "fileReplacements": [
  58. {
  59. "replace": "src/environments/environment.ts",
  60. "with": "src/environments/environment.development.ts"
  61. }
  62. ]
  63. }
  64. },
  65. "defaultConfiguration": "production"
  66. },
  67. "serve": {
  68. "builder": "@angular/build:dev-server",
  69. "options": {
  70. "proxyConfig": "src/proxy.conf.json"
  71. },
  72. "configurations": {
  73. "production": {
  74. "buildTarget": "leather-frontend:build:production"
  75. },
  76. "development": {
  77. "buildTarget": "leather-frontend:build:development"
  78. }
  79. },
  80. "defaultConfiguration": "development"
  81. },
  82. "extract-i18n": {
  83. "builder": "@angular/build:extract-i18n"
  84. },
  85. "test": {
  86. "builder": "@angular/build:karma",
  87. "options": {
  88. "polyfills": [
  89. "zone.js",
  90. "zone.js/testing",
  91. "@angular/localize/init"
  92. ],
  93. "tsConfig": "tsconfig.spec.json",
  94. "inlineStyleLanguage": "scss",
  95. "assets": [
  96. {
  97. "glob": "**/*",
  98. "input": "public"
  99. }
  100. ],
  101. "styles": [
  102. "src/styles.scss"
  103. ]
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }