angular.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "defaultProject": "app",
  5. "newProjectRoot": "projects",
  6. "projects": {
  7. "app": {
  8. "root": "",
  9. "sourceRoot": "src",
  10. "projectType": "application",
  11. "prefix": "app",
  12. "schematics": {},
  13. "architect": {
  14. "build": {
  15. "builder": "@angular-devkit/build-angular:browser",
  16. "options": {
  17. "outputPath": "www",
  18. "index": "src/index.html",
  19. "main": "src/main.ts",
  20. "polyfills": "src/polyfills.ts",
  21. "tsConfig": "tsconfig.app.json",
  22. "assets": [
  23. {
  24. "glob": "**/*",
  25. "input": "src/assets",
  26. "output": "assets"
  27. },
  28. {
  29. "glob": "**/*.svg",
  30. "input": "node_modules/ionicons/dist/ionicons/svg",
  31. "output": "./svg"
  32. },
  33. {
  34. "glob": "**/*",
  35. "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  36. "output": "icons-angular/assets"
  37. }
  38. ],
  39. "styles": [
  40. "node_modules/ng-zorro-antd-mobile/src/ng-zorro-antd-mobile.min.css",
  41. "src/theme/variables.scss",
  42. "src/global.scss"
  43. ],
  44. "scripts": [],
  45. "aot": false,
  46. "vendorChunk": true,
  47. "extractLicenses": false,
  48. "buildOptimizer": false,
  49. "sourceMap": true,
  50. "optimization": false,
  51. "namedChunks": true,
  52. "preserveSymlinks": true
  53. },
  54. "configurations": {
  55. "production": {
  56. "fileReplacements": [
  57. {
  58. "replace": "src/environments/environment.ts",
  59. "with": "src/environments/environment.prod.ts"
  60. }
  61. ],
  62. "optimization": true,
  63. "outputHashing": "all",
  64. "sourceMap": false,
  65. "namedChunks": false,
  66. "aot": true,
  67. "extractLicenses": true,
  68. "vendorChunk": false,
  69. "buildOptimizer": true,
  70. "budgets": [
  71. {
  72. "type": "initial",
  73. "maximumWarning": "2mb",
  74. "maximumError": "5mb"
  75. }
  76. ]
  77. },
  78. "ci": {
  79. "progress": false
  80. }
  81. }
  82. },
  83. "serve": {
  84. "builder": "@angular-devkit/build-angular:dev-server",
  85. "options": {
  86. "browserTarget": "app:build"
  87. },
  88. "configurations": {
  89. "production": {
  90. "browserTarget": "app:build:production"
  91. },
  92. "ci": {
  93. "progress": false
  94. }
  95. }
  96. },
  97. "extract-i18n": {
  98. "builder": "@angular-devkit/build-angular:extract-i18n",
  99. "options": {
  100. "browserTarget": "app:build"
  101. }
  102. },
  103. "test": {
  104. "builder": "@angular-devkit/build-angular:karma",
  105. "options": {
  106. "main": "src/test.ts",
  107. "polyfills": "src/polyfills.ts",
  108. "tsConfig": "tsconfig.spec.json",
  109. "karmaConfig": "karma.conf.js",
  110. "styles": [],
  111. "scripts": [],
  112. "assets": [
  113. {
  114. "glob": "favicon.ico",
  115. "input": "src/",
  116. "output": "/"
  117. },
  118. {
  119. "glob": "**/*",
  120. "input": "src/assets",
  121. "output": "/assets"
  122. }
  123. ]
  124. },
  125. "configurations": {
  126. "ci": {
  127. "progress": false,
  128. "watch": false
  129. }
  130. }
  131. },
  132. "lint": {
  133. "builder": "@angular-eslint/builder:lint",
  134. "options": {
  135. "lintFilePatterns": [
  136. "src/**/*.ts",
  137. "src/**/*.html"
  138. ]
  139. }
  140. },
  141. "e2e": {
  142. "builder": "@angular-devkit/build-angular:protractor",
  143. "options": {
  144. "protractorConfig": "e2e/protractor.conf.js",
  145. "devServerTarget": "app:serve"
  146. },
  147. "configurations": {
  148. "production": {
  149. "devServerTarget": "app:serve:production"
  150. },
  151. "ci": {
  152. "devServerTarget": "app:serve:ci"
  153. }
  154. }
  155. },
  156. "ionic-cordova-build": {
  157. "builder": "@ionic/angular-toolkit:cordova-build",
  158. "options": {
  159. "browserTarget": "app:build"
  160. },
  161. "configurations": {
  162. "production": {
  163. "browserTarget": "app:build:production"
  164. }
  165. }
  166. },
  167. "ionic-cordova-serve": {
  168. "builder": "@ionic/angular-toolkit:cordova-serve",
  169. "options": {
  170. "cordovaBuildTarget": "app:ionic-cordova-build",
  171. "devServerTarget": "app:serve"
  172. },
  173. "configurations": {
  174. "production": {
  175. "cordovaBuildTarget": "app:ionic-cordova-build:production",
  176. "devServerTarget": "app:serve:production"
  177. }
  178. }
  179. }
  180. }
  181. }
  182. },
  183. "cli": {
  184. "analytics": false,
  185. "defaultCollection": "@ionic/angular-toolkit"
  186. },
  187. "schematics": {
  188. "@ionic/angular-toolkit:component": {
  189. "styleext": "scss"
  190. },
  191. "@ionic/angular-toolkit:page": {
  192. "styleext": "scss"
  193. }
  194. }
  195. }