Files
OSIT-AE-App-Svelte/svelte.config.js

38 lines
980 B
JavaScript

import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
// import adapter from '@sveltejs/adapter-static';
// import adapter from '@sveltejs/adapter-node';
export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
// Disable accessibility warnings
onwarn: (warning, handler) => {
if (warning.code.includes("a11y")) 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: ''
// })
// }
}