angular.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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": ["./node_modules/ng-zorro-antd/ng-zorro-antd.variable.min.css", "src/styles.less"],
  40. "scripts": []
  41. },
  42. "configurations": {
  43. "production": {
  44. "budgets": [
  45. {
  46. "type": "initial",
  47. "maximumWarning": "2MB",
  48. "maximumError": "3MB"
  49. },
  50. {
  51. "type": "anyComponentStyle",
  52. "maximumWarning": "2MB",
  53. "maximumError": "3MB"
  54. }
  55. ],
  56. "outputHashing": "all"
  57. },
  58. "development": {
  59. "optimization": false,
  60. "extractLicenses": false,
  61. "sourceMap": true
  62. }
  63. },
  64. "defaultConfiguration": "production"
  65. },
  66. "serve": {
  67. "builder": "@angular-devkit/build-angular:dev-server",
  68. "configurations": {
  69. "production": {
  70. "buildTarget": "client_angular:build:production"
  71. },
  72. "development": {
  73. "buildTarget": "client_angular:build:development"
  74. }
  75. },
  76. "defaultConfiguration": "development"
  77. },
  78. "extract-i18n": {
  79. "builder": "@angular-devkit/build-angular:extract-i18n"
  80. },
  81. "test": {
  82. "builder": "@angular-devkit/build-angular:karma",
  83. "options": {
  84. "polyfills": ["zone.js", "zone.js/testing"],
  85. "tsConfig": "tsconfig.spec.json",
  86. "inlineStyleLanguage": "less",
  87. "assets": [
  88. {
  89. "glob": "**/*",
  90. "input": "public"
  91. }
  92. ],
  93. "styles": ["./node_modules/ng-zorro-antd/ng-zorro-antd.variable.min.css", "src/styles.less"],
  94. "scripts": []
  95. }
  96. }
  97. }
  98. }
  99. },
  100. "cli": {
  101. "analytics": false
  102. }
  103. }