angular.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. "./node_modules/ol/ol.css",
  40. "./node_modules/hslayers-ng/src/css/hslayers-bootstrap.scss",
  41. "./node_modules/hslayers-ng/src/css/whhg-font/css/whhg.css"
  42. ],
  43. "scripts": [],
  44. "vendorChunk": true,
  45. "extractLicenses": false,
  46. "buildOptimizer": false,
  47. "sourceMap": true,
  48. "optimization": false,
  49. "namedChunks": true
  50. },
  51. "configurations": {
  52. "production": {
  53. "fileReplacements": [
  54. {
  55. "replace": "environments/environment.ts",
  56. "with": "environments/environment.prod.ts"
  57. }
  58. ],
  59. "optimization": true,
  60. "outputHashing": "all",
  61. "namedChunks": false,
  62. "statsJson": true,
  63. "extractLicenses": true,
  64. "vendorChunk": false,
  65. "buildOptimizer": true,
  66. "budgets": [
  67. {
  68. "type": "initial",
  69. "maximumWarning": "3mb",
  70. "maximumError": "5mb"
  71. },
  72. {
  73. "type": "anyComponentStyle",
  74. "maximumWarning": "60kb",
  75. "maximumError": "100kb"
  76. }
  77. ]
  78. }
  79. },
  80. "defaultConfiguration": ""
  81. },
  82. "serve": {
  83. "builder": "@angular-builders/custom-webpack:dev-server",
  84. "options": {
  85. "port": 8080,
  86. "browserTarget": "attractiveness:build"
  87. },
  88. "configurations": {
  89. "production": {
  90. "browserTarget": "attractiveness:build:production"
  91. }
  92. }
  93. },
  94. "extract-i18n": {
  95. "builder": "@angular-devkit/build-angular:extract-i18n",
  96. "options": {
  97. "browserTarget": "attractiveness:build"
  98. }
  99. },
  100. "test": {
  101. "builder": "@angular-devkit/build-angular:karma",
  102. "options": {
  103. "main": "test.ts",
  104. "polyfills": "polyfills.ts",
  105. "tsConfig": "tsconfig.spec.json",
  106. "karmaConfig": "karma.conf.js",
  107. "assets": [
  108. "favicon.ico"
  109. ],
  110. "styles": [
  111. ],
  112. "scripts": []
  113. }
  114. },
  115. "e2e": {
  116. "builder": "@angular-devkit/build-angular:protractor",
  117. "options": {
  118. "protractorConfig": "e2e/protractor.conf.js",
  119. "devServerTarget": "attractiveness:serve"
  120. },
  121. "configurations": {
  122. "production": {
  123. "devServerTarget": "attractiveness:serve:production"
  124. }
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "defaultProject": "attractiveness",
  131. "cli": {
  132. "analytics": false
  133. }
  134. }