svelte.config.js 874 B

123456789101112131415161718192021222324252627
  1. import adapter from '@sveltejs/adapter-auto';
  2. import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
  3. /** @type {import('@sveltejs/kit').Config} */
  4. const config = {
  5. // Consult https://kit.svelte.dev/docs/integrations#preprocessors
  6. // for more information about preprocessors
  7. preprocess: vitePreprocess(),
  8. // Disable ARIA warnings. Not sure if this actually works
  9. onwarn: (warning, handler) => {
  10. if (warning.code.startsWith('a11y-')) {
  11. return;
  12. }
  13. handler(warning);
  14. },
  15. kit: {
  16. // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
  17. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
  18. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
  19. adapter: adapter()
  20. }
  21. };
  22. export default config;