-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsvelte.config.js
41 lines (38 loc) · 936 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
36
37
38
39
40
41
import adapter from "@sveltejs/adapter-netlify";
import sveltePreprocess from "svelte-preprocess";
import { fastDimension } from "svelte-fast-dimension";
import autoprefixer from "autoprefixer";
/** @type {import('@sveltejs/kit').Config} */
export default {
compilerOptions: {
accessors: true,
},
kit: {
adapter: adapter({
preprocess: true,
}),
alias: {
"@": "./src",
"@/*": "./src/*",
},
csrf: {
// BUG: https://github.com/sveltejs/kit/issues/8026
checkOrigin: process.env.NODE_ENV === "development" ? false : true,
},
},
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: [
fastDimension(),
sveltePreprocess({
postcss: {
plugins: [autoprefixer],
},
typescript: {
compilerOptions: {
target: "es2020",
},
},
}),
],
};