litechatplus/svelte.config.js

29 lines
664 B
JavaScript
Raw Normal View History

2023-02-11 18:05:58 +00:00
import adapter from '@sveltejs/adapter-static';
2023-02-11 16:11:55 +00:00
import { vitePreprocess } from '@sveltejs/kit/vite';
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
const file = fileURLToPath(new URL('package.json', import.meta.url));
const json = readFileSync(file, 'utf8');
const pkg = JSON.parse(json);
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
2023-02-11 18:05:58 +00:00
adapter: adapter({
strict: false
}),
2023-02-11 16:11:55 +00:00
version: {
name: pkg.version
}
}
};
export default config;