angular.json 4.1 KB

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