aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.ts
blob: d42176824822c17508d567f941159d23a10c9ece (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [svelte({
    onwarn: (warning, handler) => {
      const { code } = warning;
      if (code === "css-unused-selector")
        return;

      handler(warning);
    },
  }
  )]
})