angular.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ng": {
  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": "../server/public",
  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": ["src/favicon.ico", "src/assets"],
  27. "styles": ["src/styles.scss"],
  28. "scripts": ["bootstrap-theme/dist/js/bootstrap.js"]
  29. },
  30. "configurations": {
  31. "production": {
  32. "budgets": [
  33. {
  34. "type": "initial",
  35. "maximumWarning": "500kb",
  36. "maximumError": "1mb"
  37. },
  38. {
  39. "type": "anyComponentStyle",
  40. "maximumWarning": "2kb",
  41. "maximumError": "4kb"
  42. }
  43. ],
  44. "fileReplacements": [
  45. {
  46. "replace": "src/environments/environment.ts",
  47. "with": "src/environments/environment.prod.ts"
  48. }
  49. ],
  50. "outputHashing": "all"
  51. },
  52. "development": {
  53. "buildOptimizer": false,
  54. "optimization": false,
  55. "vendorChunk": true,
  56. "extractLicenses": false,
  57. "sourceMap": true,
  58. "namedChunks": true
  59. }
  60. },
  61. "defaultConfiguration": "production"
  62. },
  63. "serve": {
  64. "builder": "@angular-devkit/build-angular:dev-server",
  65. "configurations": {
  66. "production": {
  67. "browserTarget": "ng:build:production"
  68. },
  69. "development": {
  70. "browserTarget": "ng:build:development"
  71. }
  72. },
  73. "defaultConfiguration": "development"
  74. },
  75. "extract-i18n": {
  76. "builder": "@angular-devkit/build-angular:extract-i18n",
  77. "options": {
  78. "browserTarget": "ng:build"
  79. }
  80. },
  81. "test": {
  82. "builder": "@angular-devkit/build-angular:karma",
  83. "options": {
  84. "main": "src/test.ts",
  85. "polyfills": "src/polyfills.ts",
  86. "tsConfig": "tsconfig.spec.json",
  87. "karmaConfig": "karma.conf.js",
  88. "inlineStyleLanguage": "scss",
  89. "assets": ["src/favicon.ico", "src/assets"],
  90. "styles": ["src/styles.scss"],
  91. "scripts": []
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "cli": {
  98. "analytics": false
  99. }
  100. }