31 lines
745 B
JavaScript
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;
|