hypnagaga/svelte.config.js
Ben Aultowski da66707338
Some checks are pending
Publish preview / build (push) Waiting to run
Release / release (push) Waiting to run
Release / notify-downstream (push) Blocked by required conditions
Frozen in amber
2026-02-16 20:16:27 -05:00

31 lines
745 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true,
}),
files: {
lib: 'src',
},
alias: {
$docs: 'src/docs',
'$docs/*': 'src/docs/*',
},
},
/** @type {import('@sveltejs/vite-plugin-svelte').SvelteConfig['onwarn']} */
onwarn: (warning, handler) => {
if (warning.code === 'vite-plugin-svelte-preprocess-many-dependencies')
return;
handler(warning);
},
preprocess: [vitePreprocess({})],
};
export default config;