angular.json 3.0 KB

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