angular.json 3.6 KB

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