angular.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "attractiveness": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "sass"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-builders/custom-webpack:browser",
  19. "options": {
  20. "customWebpackConfig": {
  21. "path": "./webpack.config.js"
  22. },
  23. "outputPath": "build",
  24. "index": "src/index.html",
  25. "main": "src/main.ts",
  26. "polyfills": "src/polyfills.ts",
  27. "tsConfig": "tsconfig.app.json",
  28. "assets": [
  29. "src/images/cropped-favicon-32x32.png",
  30. "src/assets",
  31. {
  32. "glob": "**/*",
  33. "input": "./node_modules/hslayers-ng/src/assets",
  34. "output": "./assets/hslayers-ng/"
  35. }
  36. ],
  37. "preserveSymlinks": true,
  38. "styles": [
  39. ],
  40. "scripts": [],
  41. "vendorChunk": true,
  42. "extractLicenses": false,
  43. "buildOptimizer": false,
  44. "sourceMap": true,
  45. "optimization": false,
  46. "namedChunks": true
  47. },
  48. "configurations": {
  49. "production": {
  50. "fileReplacements": [
  51. {
  52. "replace": "environments/environment.ts",
  53. "with": "environments/environment.prod.ts"
  54. }
  55. ],
  56. "optimization": true,
  57. "outputHashing": "all",
  58. "namedChunks": false,
  59. "statsJson": true,
  60. "extractLicenses": true,
  61. "vendorChunk": false,
  62. "buildOptimizer": true,
  63. "budgets": [
  64. {
  65. "type": "initial",
  66. "maximumWarning": "3mb",
  67. "maximumError": "5mb"
  68. },
  69. {
  70. "type": "anyComponentStyle",
  71. "maximumWarning": "6kb",
  72. "maximumError": "10kb"
  73. }
  74. ]
  75. }
  76. },
  77. "defaultConfiguration": ""
  78. },
  79. "serve": {
  80. "builder": "@angular-builders/custom-webpack:dev-server",
  81. "options": {
  82. "port": 8080,
  83. "browserTarget": "attractiveness:build"
  84. },
  85. "configurations": {
  86. "production": {
  87. "browserTarget": "attractiveness:build:production"
  88. }
  89. }
  90. },
  91. "extract-i18n": {
  92. "builder": "@angular-devkit/build-angular:extract-i18n",
  93. "options": {
  94. "browserTarget": "attractiveness:build"
  95. }
  96. },
  97. "test": {
  98. "builder": "@angular-devkit/build-angular:karma",
  99. "options": {
  100. "main": "test.ts",
  101. "polyfills": "polyfills.ts",
  102. "tsConfig": "tsconfig.spec.json",
  103. "karmaConfig": "karma.conf.js",
  104. "assets": [
  105. "favicon.ico"
  106. ],
  107. "styles": [
  108. ],
  109. "scripts": []
  110. }
  111. },
  112. "e2e": {
  113. "builder": "@angular-devkit/build-angular:protractor",
  114. "options": {
  115. "protractorConfig": "e2e/protractor.conf.js",
  116. "devServerTarget": "attractiveness:serve"
  117. },
  118. "configurations": {
  119. "production": {
  120. "devServerTarget": "attractiveness:serve:production"
  121. }
  122. }
  123. }
  124. }
  125. }
  126. },
  127. "defaultProject": "attractiveness",
  128. "cli": {
  129. "analytics": false
  130. }
  131. }