mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-28 16:00:52 +00:00
19 lines
432 B
JavaScript
19 lines
432 B
JavaScript
|
import * as path from 'path'
|
||
|
import { defineConfig } from 'vite'
|
||
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
resolve: {
|
||
|
alias: [
|
||
|
{find: 'src', replacement: path.resolve(__dirname, 'src')},
|
||
|
],
|
||
|
},
|
||
|
plugins: [svelte({
|
||
|
onwarn: (warning, handler) => {
|
||
|
if (warning.code.startsWith("a11y-")) return
|
||
|
handler(warning)
|
||
|
},
|
||
|
})],
|
||
|
})
|