-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsvelte.config.js
More file actions
41 lines (39 loc) · 1.05 KB
/
svelte.config.js
File metadata and controls
41 lines (39 loc) · 1.05 KB
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-cloudflare";
import { sveltePreprocess } from "svelte-preprocess";
import autoprefixer from "autoprefixer";
/** @type {import('@sveltejs/kit').Config} */
export default {
kit: {
adapter: adapter(),
alias: {
"@/config": "./src/config",
"@/config/*": "./src/config/*",
"@/embed": "./src/embed",
"@/embed/*": "./src/embed/*",
"@/langs": "./src/langs",
"@/langs/*": "./src/langs/*",
"@/legacy": "./src/legacy",
"@/legacy/*": "./src/legacy/*",
"@/routes": "./src/routes",
"@/routes/*": "./src/routes/*",
"@/style": "./src/style",
"@/style/*": "./src/style/*",
"@/test": "./src/test",
"@/test/*": "./src/test/*",
},
},
// Consult https://svelte.dev/docs/svelte/svelte-compiler#preprocess
// for more information about preprocessors
preprocess: [
sveltePreprocess({
postcss: {
plugins: [autoprefixer],
},
typescript: {
compilerOptions: {
target: "es2020",
},
},
}),
],
};