-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
33 lines (31 loc) · 1.07 KB
/
vite.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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import veauryVitePlugins from 'veaury/vite/index.js';
import mdx from '@mdx-js/rollup';
import remarkFrontmatter from 'remark-frontmatter';
import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
import rehypeImgSize from 'rehype-img-size';
import rehypeSlug from 'rehype-slug';
import rehypePrism from '@mapbox/rehype-prism';
// https://vitejs.dev/config/
export default defineConfig({
// base: "/My-Portfolio",
plugins: [
// react(),
mdx({
rehypePlugins: [[rehypeImgSize, { dir: 'public' }], rehypeSlug, rehypePrism],
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
providerImportSource: '@mdx-js/react',
}),
veauryVitePlugins({
type: 'react',
// Configuration of @vitejs/plugin-vue
// vueOptions: {...},
// Configuration of @vitejs/plugin-react
// reactOptions: {...},
// Configuration of @vitejs/plugin-vue-jsx
// vueJsxOptions: {...}
})
],
assetsInclude: ['**/*.obj','**/*.glb', '**/*.hdr', '**/*.glsl'],
})