vite.config.mts 851 B

1234567891011121314151617181920212223242526
  1. import { vendureDashboardPlugin } from '@vendure/dashboard/plugin';
  2. import path from 'path';
  3. import { pathToFileURL } from 'url';
  4. import { defineConfig } from 'vite';
  5. export default defineConfig({
  6. plugins: [
  7. vendureDashboardPlugin({
  8. vendureConfigPath: pathToFileURL('./dev-config.ts'),
  9. adminUiConfig: { apiHost: 'http://localhost', apiPort: 3000 },
  10. gqlTadaOutputPath: path.resolve(__dirname, './graphql/'),
  11. theme: {
  12. light: {
  13. brand: 'red',
  14. 'brand-lighter': 'red',
  15. 'brand-darker': 'red',
  16. },
  17. dark: {
  18. brand: 'red',
  19. 'brand-lighter': 'red',
  20. 'brand-darker': 'red',
  21. },
  22. },
  23. }) as any,
  24. ],
  25. });