Stirling-PDF/client-ionic/vite.config.ts
2023-10-28 00:20:24 +03:00

19 lines
459 B
TypeScript

import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'; // https://ionicframework.com/docs/react/pwa
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({ registerType: 'autoUpdate' }),
legacy()
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
}
})