-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvite.config.ts
More file actions
26 lines (25 loc) · 859 Bytes
/
vite.config.ts
File metadata and controls
26 lines (25 loc) · 859 Bytes
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
import react from '@vitejs/plugin-react'
import jotaiDebugLabel from 'jotai/babel/plugin-debug-label'
import jotaiReactRefresh from 'jotai/babel/plugin-react-refresh'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig /* , splitVendorChunkPlugin */ } from 'vite'
import checker from 'vite-plugin-checker'
import { VitePluginFonts } from 'vite-plugin-fonts'
import tsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
tsconfigPaths(),
checker({ typescript: true }),
react({ babel: { plugins: [jotaiDebugLabel, jotaiReactRefresh] } }),
VitePluginFonts({
google: {
families: [
{ name: 'Lato', styles: 'wght@100;400;700' },
{ name: 'Mulish', styles: 'wght@700;800;900' },
],
},
}),
visualizer(),
],
})