-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.ts
27 lines (27 loc) · 723 Bytes
/
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
import * as path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import generouted from '@generouted/react-router/plugin';
import { VitePWA } from 'vite-plugin-pwa';
import { Mode, plugin } from 'vite-plugin-markdown';
import mdx from '@mdx-js/rollup';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
{ enforce: 'pre', ...mdx() },
react(),
generouted(),
tsconfigPaths(),
VitePWA({ registerType: 'autoUpdate' }),
plugin({
mode: [Mode.MARKDOWN],
}),
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
assetsInclude: ['**/*.yml'],
});