angular.json 3.1 KB

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