Stirling-PDF/client-ionic/vite.config.ts

19 lines
459 B
TypeScript
Raw Normal View History

2023-10-23 17:08:28 +02:00
import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
2023-10-27 23:20:24 +02:00
import { VitePWA } from 'vite-plugin-pwa'; // https://ionicframework.com/docs/react/pwa
2023-10-23 17:08:28 +02:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
2023-10-27 23:20:24 +02:00
VitePWA({ registerType: 'autoUpdate' }),
2023-10-23 17:08:28 +02:00
legacy()
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
}
})