forked from files-community/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
45 lines (41 loc) · 1.08 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
import adapter from "@sveltejs/adapter-cloudflare";
import sveltePreprocess from "svelte-preprocess";
import { mdsvex } from "mdsvex";
import remarkGfm from "remark-gfm";
import remarkA11yEmoji from "@fec/remark-a11y-emoji";
import remarkSlug from "remark-slug";
import remarkGithub from "remark-github";
import rehypeColorPreview from "rehype-color-preview";
import autoprefixer from "autoprefixer";
import cssnano from "cssnano";
import mediaMinMax from "postcss-media-minmax";
/** @type {import("@sveltejs/kit").Config} */
const config = {
extensions: [".svelte", ".md"],
kit: {
alias: {
$data: "src/data",
$layout: "src/layout",
$i18n: "src/i18n",
},
adapter: adapter(),
},
preprocess: [
mdsvex({
extensions: [".md"],
smartypants: {
dashes: "oldschool",
},
remarkPlugins: [remarkA11yEmoji, remarkSlug, remarkGfm, remarkGithub],
rehypePlugins: [rehypeColorPreview],
}),
sveltePreprocess({
postcss: {
plugins: [autoprefixer(), cssnano(), mediaMinMax()],
},
}),
],
};
// shut up webstorm
// noinspection JSUnusedGlobalSymbols
export default config;