| 123456789101112131415161718192021222324 |
- import { vendureDashboardPlugin } from '@vendure/dashboard/vite';
- import { join, resolve } from 'path';
- import { pathToFileURL } from 'url';
- import { defineConfig } from 'vite';
- export default defineConfig({
- build: {
- outDir: join(__dirname, 'dist/dashboard'),
- },
- plugins: [
- vendureDashboardPlugin({
- vendureConfigPath: pathToFileURL('./src/vendure-config.ts'),
- api: { host: 'http://localhost', port: 3000 },
- gqlOutputPath: './src/gql',
- }),
- ],
- resolve: {
- alias: {
- // This allows all plugins to reference a shared set of
- // GraphQL types.
- '@/gql': resolve(__dirname, './src/gql/graphql.ts'),
- },
- },
- });
|