angular.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/theme.min.css",
  31. "src/assets",
  32. "src/i18n-messages",
  33. {
  34. "glob": "**/*.*",
  35. "input": "static-assets",
  36. "output": "assets"
  37. }
  38. ],
  39. "styles": [
  40. "src/styles/styles.scss"
  41. ],
  42. "stylePreprocessorOptions": {
  43. "includePaths": [
  44. "./src/styles"
  45. ]
  46. },
  47. "showCircularDependencies": false
  48. },
  49. "configurations": {
  50. "production": {
  51. "budgets": [
  52. {
  53. "type": "anyComponentStyle",
  54. "maximumWarning": "6kb"
  55. }
  56. ],
  57. "fileReplacements": [
  58. {
  59. "replace": "src/environment.ts",
  60. "with": "src/environment.prod.ts"
  61. }
  62. ],
  63. "optimization": true,
  64. "outputHashing": "all",
  65. "sourceMap": true,
  66. "extractCss": true,
  67. "namedChunks": false,
  68. "aot": true,
  69. "extractLicenses": true,
  70. "vendorChunk": false,
  71. "buildOptimizer": false
  72. }
  73. }
  74. },
  75. "serve": {
  76. "builder": "@angular-devkit/build-angular:dev-server",
  77. "options": {
  78. "browserTarget": "vendure-admin:build"
  79. }
  80. }
  81. }
  82. }
  83. },
  84. "defaultProject": "vendure-admin",
  85. "schematics": {
  86. "@schematics/angular:component": {
  87. "skipTests": true,
  88. "changeDetection": "OnPush"
  89. }
  90. },
  91. "cli": {
  92. "packageManager": "yarn",
  93. "analytics": false
  94. }
  95. }