angular.json 4.2 KB

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