angular.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. "styles": [
  34. "../../node_modules/@clr/icons/clr-icons.min.css",
  35. "src/styles/styles.scss"
  36. ],
  37. "stylePreprocessorOptions": {
  38. "includePaths": [
  39. "./src/styles"
  40. ]
  41. },
  42. "showCircularDependencies": false
  43. },
  44. "configurations": {
  45. "production": {
  46. "budgets": [
  47. {
  48. "type": "anyComponentStyle",
  49. "maximumWarning": "6kb"
  50. }
  51. ],
  52. "optimization": true,
  53. "outputHashing": "all",
  54. "sourceMap": true,
  55. "extractCss": true,
  56. "namedChunks": false,
  57. "aot": true,
  58. "extractLicenses": true,
  59. "vendorChunk": false,
  60. "buildOptimizer": true
  61. }
  62. }
  63. },
  64. "serve": {
  65. "builder": "@angular-devkit/build-angular:dev-server",
  66. "options": {
  67. "browserTarget": "vendure-admin:build"
  68. }
  69. }
  70. }
  71. }
  72. },
  73. "defaultProject": "vendure-admin",
  74. "schematics": {
  75. "@schematics/angular:component": {
  76. "skipTests": true,
  77. "changeDetection": "OnPush"
  78. }
  79. },
  80. "cli": {
  81. "packageManager": "yarn",
  82. "analytics": false
  83. }
  84. }