mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-07 08:39:24 +00:00
21 lines
546 B
JavaScript
21 lines
546 B
JavaScript
import adapter from '@sveltejs/adapter-static'
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
onwarn: (warning, handler) => {
|
|
if (warning.code === 'a11y_media_has_caption') return
|
|
if (warning.code === 'element_invalid_self_closing_tag') return
|
|
handler(warning)
|
|
},
|
|
preprocess: vitePreprocess({}),
|
|
kit: {
|
|
adapter: adapter({ fallback: 'index.html' }),
|
|
alias: {
|
|
'@/*': './path/to/lib/*'
|
|
}
|
|
},
|
|
runtime: ''
|
|
}
|
|
|
|
export default config
|