-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 813 Bytes
/
vite.config.ts
File metadata and controls
31 lines (30 loc) · 813 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
27
28
29
30
31
import { vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";
import { createRoutesFromFolders } from "@remix-run/v1-route-convention";
import remarkGfm from "remark-gfm";
import mdx from "@mdx-js/rollup";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
resolve: {
tsconfigPaths: true,
},
plugins: [
mdx({
remarkPlugins: [remarkGfm],
}),
tailwindcss(),
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_lazyRouteDiscovery: true,
v3_singleFetch: true,
},
routes(defineRoutes) {
// uses the v1 convention, works in v1.15+ and v2
return createRoutesFromFolders(defineRoutes);
},
}),
],
});