svelte.config.js 734 B

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