pupraider.net/svelte.config.js
2024-12-27 20:34:06 +00:00

41 lines
914 B
JavaScript

import adapter from '@sveltejs/adapter-cloudflare';
import { sveltePreprocess } from 'svelte-preprocess';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [
vitePreprocess(),
sveltePreprocess({
scss: {
prependData: '@use "src/variables.scss" as *;'
},
preserve: ['ld+json']
})
],
kit: {
adapter: adapter({
routes: {
include: [/*'/read/*', '/author/*', '/tag/*', */ '/*'],
exclude: ['<all>']
}
}),
alias: {
$houdini: './$houdini',
},
prerender: {
entries: ['*', '/community-survey-23-10', '/stub-landing']
}
},
onwarn: (warning, handler) => {
if (warning.code == 'css-unused-selector') {
return;
}
handler(warning);
},
};
export default config;