angular.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "my-app": {
  7. "projectType": "application",
  8. "schematics": {},
  9. "root": "",
  10. "sourceRoot": "src",
  11. "prefix": "app",
  12. "architect": {
  13. "build": {
  14. "builder": "@angular-devkit/build-angular:browser",
  15. "options": {
  16. "outputPath": "dist/my-app",
  17. "index": "src/index.html",
  18. "main": "src/main.ts",
  19. "polyfills": "src/polyfills.ts",
  20. "tsConfig": "tsconfig.app.json",
  21. "aot": true,
  22. "assets": [
  23. "src/favicon.ico",
  24. "src/assets"
  25. ],
  26. "styles": [
  27. "src/styles.css"
  28. ],
  29. "scripts": []
  30. },
  31. "configurations": {
  32. "production": {
  33. "fileReplacements": [
  34. {
  35. "replace": "src/environments/environment.ts",
  36. "with": "src/environments/environment.prod.ts"
  37. }
  38. ],
  39. "optimization": true,
  40. "outputHashing": "all",
  41. "sourceMap": false,
  42. "namedChunks": false,
  43. "extractLicenses": true,
  44. "vendorChunk": false,
  45. "buildOptimizer": true,
  46. "budgets": [
  47. {
  48. "type": "initial",
  49. "maximumWarning": "2mb",
  50. "maximumError": "5mb"
  51. },
  52. {
  53. "type": "anyComponentStyle",
  54. "maximumWarning": "6kb",
  55. "maximumError": "10kb"
  56. }
  57. ]
  58. }
  59. }
  60. },
  61. "serve": {
  62. "builder": "@angular-devkit/build-angular:dev-server",
  63. "options": {
  64. "browserTarget": "my-app:build"
  65. },
  66. "configurations": {
  67. "production": {
  68. "browserTarget": "my-app:build:production"
  69. }
  70. }
  71. },
  72. "extract-i18n": {
  73. "builder": "@angular-devkit/build-angular:extract-i18n",
  74. "options": {
  75. "browserTarget": "my-app:build"
  76. }
  77. },
  78. "test": {
  79. "builder": "@angular-devkit/build-angular:karma",
  80. "options": {
  81. "main": "src/test.ts",
  82. "polyfills": "src/polyfills.ts",
  83. "tsConfig": "tsconfig.spec.json",
  84. "karmaConfig": "karma.conf.js",
  85. "assets": [
  86. "src/favicon.ico",
  87. "src/assets"
  88. ],
  89. "styles": [
  90. "src/styles.css"
  91. ],
  92. "scripts": []
  93. }
  94. },
  95. "lint": {
  96. "builder": "@angular-devkit/build-angular:tslint",
  97. "options": {
  98. "tsConfig": [
  99. "tsconfig.app.json",
  100. "tsconfig.spec.json",
  101. "e2e/tsconfig.json"
  102. ],
  103. "exclude": [
  104. "**/node_modules/**"
  105. ]
  106. }
  107. },
  108. "e2e": {
  109. "builder": "@angular-devkit/build-angular:protractor",
  110. "options": {
  111. "protractorConfig": "e2e/protractor.conf.js",
  112. "devServerTarget": "my-app:serve"
  113. },
  114. "configurations": {
  115. "production": {
  116. "devServerTarget": "my-app:serve:production"
  117. }
  118. }
  119. }
  120. }
  121. }
  122. },
  123. "defaultProject": "my-app"
  124. }