-
Notifications
You must be signed in to change notification settings - Fork 327
Expand file tree
/
Copy pathsvelte.config.js
More file actions
46 lines (44 loc) · 1.16 KB
/
svelte.config.js
File metadata and controls
46 lines (44 loc) · 1.16 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
42
43
44
45
46
import { mdsvex } from "mdsvex";
import path from "path";
import mdsvexConfig from "./mdsvex.config.js";
import adapter from "@sveltejs/adapter-vercel";
// import adapter from '@sveltejs/adapter-auto';
// import preprocess from 'svelte-preprocess';
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { includeFiles } from "./include-files.js";
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: [".svelte", ...mdsvexConfig.extensions],
compilerOptions: {
experimental: {
async: true
}
},
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
includeFiles({
extensions: [".md"],
docsDir: "src/routes/docs",
examplesDir: "src/routes/docs-examples"
}),
mdsvex(mdsvexConfig),
// preprocess({
// postcss: true
// })
vitePreprocess({ typeScript: true })
],
vitePlugin: {
inspector: {
holdMode: true
}
},
kit: {
adapter: adapter(),
alias: {
$icons: path.resolve("./src/routes/utils/icons"),
$utils: path.resolve("./src/routes/utils")
}
}
};
export default config;