mirror of
https://github.com/langgenius/dify.git
synced 2026-09-19 10:11:30 +08:00
29 lines
678 B
TypeScript
29 lines
678 B
TypeScript
import tailwindcss from '@tailwindcss/vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite-plus'
|
|
import { playwright } from 'vite-plus/test/browser-playwright'
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
'process.env': '{}',
|
|
},
|
|
plugins: [tailwindcss(), react()],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
optimizeDeps: {
|
|
include: ['vite-plus/test/browser'],
|
|
},
|
|
test: {
|
|
globals: true,
|
|
setupFiles: ['./vitest.browser.setup.ts'],
|
|
include: ['app/**/*.browser.spec.{ts,tsx}'],
|
|
browser: {
|
|
enabled: true,
|
|
provider: playwright(),
|
|
instances: [{ browser: 'chromium' }],
|
|
headless: true,
|
|
},
|
|
},
|
|
})
|