-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
39 lines (38 loc) · 1.09 KB
/
vite.config.ts
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
import MarkdownItMagicLink from "markdown-it-magic-link";
import { defineConfig } from "vite";
import "@slidev/cli";
export default defineConfig({
slidev: {
markdown: {
markdownItSetup(md) {
md.use(MarkdownItMagicLink, {
linksMap: {
Vue: {
link: "https://github.com/vuejs/core",
imageUrl:
"https://avatars.githubusercontent.com/u/6128107?s=48&v=4",
},
Nuxt: {
link: "https://github.com/nuxt/nuxt",
imageUrl:
"https://avatars.githubusercontent.com/u/23360933?s=48&v=4",
},
UnaUI: {
link: "https://github.com/una-ui/una-ui",
imageUrl:
"https://avatars.githubusercontent.com/u/140925492?s=48&v=4",
},
Slidev: {
link: "https://github.com/slidevjs/slidev",
imageUrl:
"https://avatars.githubusercontent.com/u/83095831?s=48&v=4",
},
},
});
},
},
},
build: {
assetsDir: "assets",
},
});