KkosmetickySalon/svelte.config.ts

32 lines
726 B
TypeScript
Raw Normal View History

2024-01-30 09:21:44 +00:00
import adapter from '@sveltejs/adapter-node';
2023-11-06 10:02:38 +00:00
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';
2024-01-30 09:21:44 +00:00
import { Config } from '@sveltejs/kit';
2023-11-06 10:02:38 +00:00
const __dirname = dirname(fileURLToPath(import.meta.url));
2024-01-30 09:21:44 +00:00
const config: Config = {
2023-11-06 10:02:38 +00:00
// 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;