angular.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "vendure-admin": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "prefix": "vdr",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss"
  14. }
  15. },
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-devkit/build-angular:browser",
  19. "options": {
  20. "aot": true,
  21. "baseHref": "/admin/",
  22. "outputPath": "dist",
  23. "index": "src/index.html",
  24. "main": "src/main.ts",
  25. "polyfills": "src/polyfills.ts",
  26. "tsConfig": "src/tsconfig.app.json",
  27. "assets": [
  28. "src/favicon.ico",
  29. "src/vendure-ui-config.json",
  30. "src/assets",
  31. "src/i18n-messages",
  32. {
  33. "glob": "**/*.*",
  34. "input": "src/extensions/static-assets",
  35. "output": "assets"
  36. }
  37. ],
  38. "styles": [
  39. "src/styles/styles.scss"
  40. ],
  41. "stylePreprocessorOptions": {
  42. "includePaths": [
  43. "./src/styles"
  44. ]
  45. },
  46. "showCircularDependencies": false
  47. },
  48. "configurations": {
  49. "production": {
  50. "budgets": [
  51. {
  52. "type": "anyComponentStyle",
  53. "maximumWarning": "6kb"
  54. }
  55. ],
  56. "fileReplacements": [
  57. {
  58. "replace": "src/environment.ts",
  59. "with": "src/environment.prod.ts"
  60. }
  61. ],
  62. "optimization": true,
  63. "outputHashing": "all",
  64. "sourceMap": true,
  65. "extractCss": true,
  66. "namedChunks": false,
  67. "aot": true,
  68. "extractLicenses": true,
  69. "vendorChunk": false,
  70. "buildOptimizer": false
  71. }
  72. }
  73. },
  74. "serve": {
  75. "builder": "@angular-devkit/build-angular:dev-server",
  76. "options": {
  77. "browserTarget": "vendure-admin:build"
  78. }
  79. }
  80. }
  81. }
  82. },
  83. "defaultProject": "vendure-admin",
  84. "schematics": {
  85. "@schematics/angular:component": {
  86. "skipTests": true,
  87. "changeDetection": "OnPush"
  88. }
  89. },
  90. "cli": {
  91. "packageManager": "yarn",
  92. "analytics": false
  93. }
  94. }