angular.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "cli": {
  5. "packageManager": "npm"
  6. },
  7. "newProjectRoot": "projects",
  8. "projects": {
  9. "frontend": {
  10. "projectType": "application",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss"
  14. }
  15. },
  16. "root": "",
  17. "sourceRoot": "src",
  18. "prefix": "app",
  19. "architect": {
  20. "build": {
  21. "builder": "@angular/build:application",
  22. "options": {
  23. "browser": "src/main.ts",
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "assets": [
  27. {
  28. "glob": "**/*",
  29. "input": "public"
  30. }
  31. ],
  32. "styles": [
  33. "src/styles.scss"
  34. ],
  35. "allowedCommonJsDependencies": [
  36. "react",
  37. "react-dom/client"
  38. ]
  39. },
  40. "configurations": {
  41. "production": {
  42. "budgets": [
  43. {
  44. "type": "initial",
  45. "maximumWarning": "800kB",
  46. "maximumError": "1MB"
  47. },
  48. {
  49. "type": "anyComponentStyle",
  50. "maximumWarning": "6kB",
  51. "maximumError": "8kB"
  52. }
  53. ],
  54. "outputHashing": "all"
  55. },
  56. "development": {
  57. "optimization": false,
  58. "extractLicenses": false,
  59. "sourceMap": true
  60. }
  61. },
  62. "defaultConfiguration": "production"
  63. },
  64. "serve": {
  65. "builder": "@angular/build:dev-server",
  66. "configurations": {
  67. "production": {
  68. "buildTarget": "frontend:build:production"
  69. },
  70. "development": {
  71. "buildTarget": "frontend:build:development"
  72. }
  73. },
  74. "defaultConfiguration": "development"
  75. },
  76. "test": {
  77. "builder": "@angular/build:unit-test"
  78. }
  79. }
  80. }
  81. }
  82. }