aboutsummaryrefslogtreecommitdiffstats
path: root/app/vite.config.ts
blob: 9837a675ce7414fdf6278170b27dc48181f49f75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';

export default defineConfig({
  build: {
    sourcemap: true
  },
  css: {
    devSourcemap: true,
  },
  plugins: [
    sveltekit(),
    purgeCss(),
    SvelteKitPWA({
      registerType: 'autoUpdate'
    })
  ]
});