2023-11-06 10:02:38 +00:00
|
|
|
import adapter from '@sveltejs/adapter-auto';
|
|
|
|
import { vitePreprocess } from '@sveltejs/kit/vite';
|
2024-01-21 03:34:04 +00:00
|
|
|
import preprocess from 'svelte-preprocess';
|
2023-11-06 10:02:38 +00:00
|
|
|
import { join, dirname } from 'path';
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
|
|
// for more information about preprocessors
|
|
|
|
preprocess: [
|
2024-01-21 03:34:04 +00:00
|
|
|
preprocess({
|
|
|
|
postcss: true
|
|
|
|
}),
|
2023-11-06 10:02:38 +00:00
|
|
|
vitePreprocess({
|
|
|
|
style: {
|
|
|
|
css: {
|
|
|
|
postcss: join(__dirname, 'postcss.config.cjs')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
kit: {
|
|
|
|
adapter: adapter()
|
|
|
|
// https://kit.svelte.dev/docs/configuration#alias
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|