forked from stablecog/stablecog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
35 lines (33 loc) · 972 Bytes
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import adapterNode from '@sveltejs/adapter-node';
import adapterAuto from '@sveltejs/adapter-auto';
import { mdsvex } from 'mdsvex';
import { vitePreprocess } from '@sveltejs/kit/vite';
import preprocess from 'svelte-preprocess';
import { mdsvexOptions } from './mdsvex.config.js';
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte', ...mdsvexOptions.extensions],
preprocess: [
vitePreprocess(),
mdsvex(mdsvexOptions),
preprocess({
postcss: true
})
],
kit: {
adapter: process.env.VERCEL ? adapterAuto() : adapterNode(),
alias: {
'$components/*': './src/lib/components',
'$ts/*': './src/lib/ts',
'$css/*': './src/lib/css',
'$md/*': './src/lib/md',
'$routes/*': './src/routes',
'$docroutes/*': './src/routes/(doc)',
'$approutes/*': './src/routes/(app)',
'$i18n/*': './src/i18n',
'$userStores/*': './src/lib/ts/stores/user'
},
inlineStyleThreshold: 60 * 1024
}
};
export default config;