angular.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. "extractCss": true,
  55. "namedChunks": false,
  56. "statsJson": true,
  57. "extractLicenses": true,
  58. "vendorChunk": false,
  59. "buildOptimizer": true,
  60. "budgets": [
  61. {
  62. "type": "initial",
  63. "maximumWarning": "3mb",
  64. "maximumError": "5mb"
  65. },
  66. {
  67. "type": "anyComponentStyle",
  68. "maximumWarning": "6kb",
  69. "maximumError": "10kb"
  70. }
  71. ]
  72. }
  73. }
  74. },
  75. "serve": {
  76. "builder": "@angular-builders/custom-webpack:dev-server",
  77. "options": {
  78. "port": 8080,
  79. "browserTarget": "attractiveness:build"
  80. },
  81. "configurations": {
  82. "production": {
  83. "browserTarget": "attractiveness:build:production"
  84. }
  85. }
  86. },
  87. "extract-i18n": {
  88. "builder": "@angular-devkit/build-angular:extract-i18n",
  89. "options": {
  90. "browserTarget": "attractiveness:build"
  91. }
  92. },
  93. "test": {
  94. "builder": "@angular-devkit/build-angular:karma",
  95. "options": {
  96. "main": "test.ts",
  97. "polyfills": "polyfills.ts",
  98. "tsConfig": "tsconfig.spec.json",
  99. "karmaConfig": "karma.conf.js",
  100. "assets": [
  101. "favicon.ico"
  102. ],
  103. "styles": [
  104. ],
  105. "scripts": []
  106. }
  107. },
  108. "e2e": {
  109. "builder": "@angular-devkit/build-angular:protractor",
  110. "options": {
  111. "protractorConfig": "e2e/protractor.conf.js",
  112. "devServerTarget": "attractiveness:serve"
  113. },
  114. "configurations": {
  115. "production": {
  116. "devServerTarget": "attractiveness:serve:production"
  117. }
  118. }
  119. }
  120. }
  121. }
  122. },
  123. "defaultProject": "attractiveness",
  124. "cli": {
  125. "analytics": false
  126. }
  127. }