68 lines
1.6 KiB
JavaScript
68 lines
1.6 KiB
JavaScript
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
|
// import adapter from '@sveltejs/adapter-static';
|
|
// import adapter from '@sveltejs/adapter-node';
|
|
|
|
|
|
const config = {
|
|
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
|
|
// for more information about preprocessors
|
|
preprocess: vitePreprocess(),
|
|
|
|
// Disable accessibility warnings
|
|
onwarn: (warning, handler) => {
|
|
// console.log('HERE');
|
|
if (warning.code.includes("a11y")) return;
|
|
// if (warning.code === 'a11y-distracting-elements') return;
|
|
handler(warning);
|
|
},
|
|
|
|
// kit: {
|
|
// adapter: adapter({
|
|
// // default options are shown. On some platforms
|
|
// // these options are set automatically — see below
|
|
// // pages: 'build',
|
|
// // assets: 'build',
|
|
// // fallback: undefined,
|
|
// // precompress: false,
|
|
// // strict: true,
|
|
|
|
// // output directory:
|
|
// // target: 'dist_x',
|
|
|
|
// // default options are shown
|
|
// out: 'build_x',
|
|
// precompress: false,
|
|
// envPrefix: ''
|
|
|
|
|
|
// })
|
|
// }
|
|
}
|
|
export default config;
|
|
|
|
|
|
|
|
// import adapter from '@sveltejs/adapter-auto';
|
|
|
|
// /** @type {import('@sveltejs/kit').Config} */
|
|
// const config = {
|
|
// // Consult https://svelte.dev/docs#compile-time-svelte-preprocess
|
|
// // for more information about preprocessors
|
|
// preprocess: vitePreprocess(),
|
|
|
|
// // Disable accessibility warnings
|
|
// onwarn: (warning, handler) => {
|
|
// console.log('HERE');
|
|
// if (warning.code.includes("a11y")) return;
|
|
// handler(warning);
|
|
// },
|
|
|
|
// kit: {
|
|
// adapter: adapter()
|
|
// }
|
|
// };
|
|
|
|
// export default config;
|
|
|