-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
47 lines (46 loc) · 1017 Bytes
/
Copy pathvite.config.ts
File metadata and controls
47 lines (46 loc) · 1017 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { defineConfig } from "vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import tailwindcss from "@tailwindcss/vite";
import { beasties } from "vite-plugin-beasties";
import { cpus } from "node:os";
export default defineConfig({
build: {
emptyOutDir: true,
},
plugins: [
tsconfigPaths(),
tailwindcss(),
tanstackStart({
sitemap: {
enabled: true,
host: "https://web.arafat.dev",
},
prerender: {
enabled: true,
concurrency: cpus().length,
},
pages: [
{
path: "/",
},
{
path: "/lesson/js-in-browsers/",
},
],
}),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
beasties({
options: {
preload: "swap",
inlineFonts: true,
pruneSource: true,
},
}),
],
});