boredgame/svelte.config.js

29 lines
583 B
JavaScript

import preprocess from 'svelte-preprocess';
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [
vitePreprocess({
postcss: true
}),
preprocess({
postcss: true
})
],
vitePlugin: {
inspector: true,
},
kit: {
adapter: adapter(),
alias: {
$lib: './src/lib',
$styles: './src/styles',
}
},
};
export default config;