1
0

vite.config.mts 486 B

1234567891011121314
  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. }) as any,
  12. ],
  13. });