angular.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "app": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@ionic/angular-toolkit:page": {
  10. "styleext": "scss",
  11. "standalone": true
  12. }
  13. },
  14. "root": "",
  15. "sourceRoot": "src",
  16. "prefix": "app",
  17. "architect": {
  18. "build": {
  19. "builder": "@angular-devkit/build-angular:application",
  20. "options": {
  21. "outputPath": {
  22. "base": "www",
  23. "browser": ""
  24. },
  25. "index": "src/index.html",
  26. "polyfills": [
  27. "src/polyfills.ts"
  28. ],
  29. "tsConfig": "tsconfig.app.json",
  30. "inlineStyleLanguage": "scss",
  31. "assets": [
  32. {
  33. "glob": "**/*",
  34. "input": "src/assets",
  35. "output": "assets"
  36. }
  37. ],
  38. "styles": ["src/global.scss", "src/theme/variables.scss"],
  39. "scripts": [],
  40. "browser": "src/main.ts"
  41. },
  42. "configurations": {
  43. "production": {
  44. "budgets": [
  45. {
  46. "type": "initial",
  47. "maximumWarning": "2mb",
  48. "maximumError": "5mb"
  49. },
  50. {
  51. "type": "anyComponentStyle",
  52. "maximumWarning": "2kb",
  53. "maximumError": "4kb"
  54. }
  55. ],
  56. "fileReplacements": [
  57. {
  58. "replace": "src/environments/environment.ts",
  59. "with": "src/environments/environment.prod.ts"
  60. }
  61. ],
  62. "outputHashing": "all"
  63. },
  64. "development": {
  65. "optimization": false,
  66. "extractLicenses": false,
  67. "sourceMap": true,
  68. "namedChunks": true
  69. },
  70. "ci": {
  71. "progress": false
  72. }
  73. },
  74. "defaultConfiguration": "production"
  75. },
  76. "serve": {
  77. "builder": "@angular-devkit/build-angular:dev-server",
  78. "configurations": {
  79. "production": {
  80. "buildTarget": "app:build:production"
  81. },
  82. "development": {
  83. "buildTarget": "app:build:development"
  84. },
  85. "ci": {
  86. "progress": false
  87. }
  88. },
  89. "defaultConfiguration": "development"
  90. },
  91. "extract-i18n": {
  92. "builder": "@angular-devkit/build-angular:extract-i18n",
  93. "options": {
  94. "buildTarget": "app:build"
  95. }
  96. },
  97. "test": {
  98. "builder": "@angular-devkit/build-angular:karma",
  99. "options": {
  100. "main": "src/test.ts",
  101. "polyfills": "src/polyfills.ts",
  102. "tsConfig": "tsconfig.spec.json",
  103. "karmaConfig": "karma.conf.js",
  104. "inlineStyleLanguage": "scss",
  105. "assets": [
  106. {
  107. "glob": "**/*",
  108. "input": "src/assets",
  109. "output": "assets"
  110. }
  111. ],
  112. "styles": ["src/global.scss", "src/theme/variables.scss"],
  113. "scripts": []
  114. },
  115. "configurations": {
  116. "ci": {
  117. "progress": false,
  118. "watch": false
  119. }
  120. }
  121. },
  122. "lint": {
  123. "builder": "@angular-eslint/builder:lint",
  124. "options": {
  125. "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
  126. }
  127. }
  128. }
  129. }
  130. },
  131. "cli": {
  132. "schematicCollections": [
  133. "@ionic/angular-toolkit"
  134. ],
  135. "analytics": false
  136. },
  137. "schematics": {
  138. "@ionic/angular-toolkit:component": {
  139. "styleext": "scss"
  140. },
  141. "@ionic/angular-toolkit:page": {
  142. "styleext": "scss"
  143. },
  144. "@angular-eslint/schematics:application": {
  145. "setParserOptionsProject": true
  146. },
  147. "@angular-eslint/schematics:library": {
  148. "setParserOptionsProject": true
  149. }
  150. }
  151. }