KkosmetickySalon/svelte.config.js

42 lines
853 B
JavaScript
Raw Normal View History

2024-03-16 09:08:05 +00:00
import adapter from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';
2024-03-24 13:40:56 +00:00
// config extensions
import { mdsvex } from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
2024-03-16 09:08:05 +00:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
2024-03-24 13:40:56 +00:00
extensions: ['.svelte', ...(mdsvexConfig.extensions || [])],
2024-03-16 09:08:05 +00:00
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
}),
2024-03-24 13:40:56 +00:00
mdsvex(mdsvexConfig)
2024-03-16 09:08:05 +00:00
],
kit: {
2024-03-19 21:20:38 +00:00
adapter: adapter({
out: 'build',
precompress: false
}),
// Aliases need tsconfig explicit inclusion
alias: {
$lib: './src/lib',
$root: './',
$src: './src',
$routes: './src/routes',
},
2024-03-16 09:08:05 +00:00
env: {
publicPrefix: "PUBLIC_",
},
// https://kit.svelte.dev/docs/configuration#alias
},
};
export default config;