-
Notifications
You must be signed in to change notification settings - Fork 501
/
svelte.config.js
57 lines (54 loc) · 1.28 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import adapter from '@sveltejs/adapter-vercel';
import preprocess from 'svelte-preprocess';
import postcssPresetEnv from 'postcss-preset-env';
import atImport from 'postcss-import';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
preprocess({
postcss: {
prependData: `
@custom-media --below-small (width < 400px);
@custom-media --below-med (width < 700px);
@custom-media --below-large (width < 900px);
@custom-media --below-xlarge (width < 1200px);
@custom-media --above-small (width > 400px);
@custom-media --above-med (width > 700px);
@custom-media --above-large (width > 900px);
@custom-media --above-xlarge (width > 1200px);
`,
plugins: [
atImport,
postcssPresetEnv({
stage: 2,
features: {
'nesting-rules': true,
'custom-media-queries': true,
'media-query-ranges': true
}
})
]
}
})
],
kit: {
adapter: adapter({
runtime: 'nodejs22.x'
}),
alias: {
$: 'src',
$actions: 'src/actions',
$assets: 'src/assets',
$const: 'src/const.ts',
$server: 'src/server',
$shows: 'shows',
$state: 'src/state',
$styles: 'src/styles',
$utilities: 'src/utilities'
}
},
compilerOptions: {
enableSourcemap: true
}
};
export default config;