angular.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "sgc-as": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  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/sgc-as",
  21. "index": "src/index.html",
  22. "main": "src/main.ts",
  23. "polyfills": "src/polyfills.ts",
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "assets": [
  27. "src/favicon.ico",
  28. "src/assets",
  29. "src/manifest.webmanifest"
  30. ],
  31. "styles": [
  32. "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  33. "src/styles.scss"
  34. ],
  35. "scripts": [],
  36. "serviceWorker": true,
  37. "ngswConfigPath": "ngsw-config.json"
  38. },
  39. "configurations": {
  40. "production": {
  41. "budgets": [
  42. {
  43. "type": "initial",
  44. "maximumWarning": "500kb",
  45. "maximumError": "1mb"
  46. },
  47. {
  48. "type": "anyComponentStyle",
  49. "maximumWarning": "2kb",
  50. "maximumError": "4kb"
  51. }
  52. ],
  53. "fileReplacements": [
  54. {
  55. "replace": "src/environments/environment.ts",
  56. "with": "src/environments/environment.prod.ts"
  57. }
  58. ],
  59. "outputHashing": "all"
  60. },
  61. "development": {
  62. "buildOptimizer": false,
  63. "optimization": false,
  64. "vendorChunk": true,
  65. "extractLicenses": false,
  66. "sourceMap": true,
  67. "namedChunks": true
  68. }
  69. },
  70. "defaultConfiguration": "production"
  71. },
  72. "serve": {
  73. "builder": "@angular-devkit/build-angular:dev-server",
  74. "configurations": {
  75. "production": {
  76. "browserTarget": "sgc-as:build:production"
  77. },
  78. "development": {
  79. "browserTarget": "sgc-as:build:development"
  80. }
  81. },
  82. "defaultConfiguration": "development"
  83. },
  84. "extract-i18n": {
  85. "builder": "@angular-devkit/build-angular:extract-i18n",
  86. "options": {
  87. "browserTarget": "sgc-as:build"
  88. }
  89. },
  90. "test": {
  91. "builder": "@angular-devkit/build-angular:karma",
  92. "options": {
  93. "main": "src/test.ts",
  94. "polyfills": "src/polyfills.ts",
  95. "tsConfig": "tsconfig.spec.json",
  96. "karmaConfig": "karma.conf.js",
  97. "inlineStyleLanguage": "scss",
  98. "assets": [
  99. "src/favicon.ico",
  100. "src/assets",
  101. "src/manifest.webmanifest"
  102. ],
  103. "styles": [
  104. "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  105. "src/styles.scss"
  106. ],
  107. "scripts": []
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }