immich/web/svelte.config.js

27 lines
612 B
JavaScript
Raw Permalink Normal View History

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
2022-09-08 15:30:49 +00:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess(),
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: 'index.html',
precompress: false,
strict: true,
}),
},
};
export default config;