boredgame/svelte.config.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

import { preprocessMeltUI } from '@melt-ui/pp'
2024-09-26 21:09:50 +00:00
import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import sequence from 'svelte-sequential-preprocessor'
/** @type {import('@sveltejs/kit').Config}*/
2022-01-28 05:27:12 +00:00
const config = {
2023-05-25 04:19:08 +00:00
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: sequence([vitePreprocess({}), preprocessMeltUI()]),
vitePlugin: {
inspector: {
toggleKeyCombo: 'control-alt-shift',
showToggleButton: 'always',
toggleButtonPos: 'bottom-right',
},
},
2023-05-25 04:19:08 +00:00
kit: {
adapter: adapter(),
alias: {
$assets: './src/assets',
$components: './src/components',
'$components/*': 'src/lib/components/*',
$db: './src/lib/server/api/infrastructure/database',
$server: './src/server',
$lib: './src/lib',
$routes: './src/routes',
$src: './src',
$state: './src/state',
2023-05-25 04:19:08 +00:00
$styles: './src/styles',
$themes: './src/themes',
},
2023-05-25 04:19:08 +00:00
},
shadcn: {
componentPath: './src/lib/components/ui',
},
compilerOptions: {
enableSourcemap: true,
},
}
export default config