angular.json 2.8 KB

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