mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-01-12 02:21:49 +00:00
27 lines
747 B
JavaScript
27 lines
747 B
JavaScript
import process from 'node:process'
|
|
|
|
import adapter from '@sveltejs/adapter-static'
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// @ts-expect-error no typedef for this
|
|
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' }),
|
|
version: {
|
|
name: process.env.npm_package_version
|
|
},
|
|
alias: {
|
|
'lucide-svelte/dist/Icon.svelte': './node_modules/lucide-svelte/dist/Icon.svelte'
|
|
}
|
|
},
|
|
runtime: ''
|
|
}
|
|
|
|
export default config
|