gitbutler/packages/ui/svelte.config.js
2024-06-26 18:03:55 +02:00

23 lines
454 B
JavaScript

import staticAdapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: staticAdapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: true,
strict: false
})
},
compilerOptions: {
css: 'injected',
enableSourcemap: true
}
};
export default config;