-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
38 lines (33 loc) · 932 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
28
29
30
31
32
33
34
35
36
37
38
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { starlightSkinPlugin } from "./vite/starlight-skins";
import { ViteImageOptimizer } from "vite-plugin-image-optimizer";
import { imagetools } from "vite-imagetools";
import uno from "@unocss/svelte-scoped/vite";
export default defineConfig({
clearScreen: false,
plugins: [
uno({
injectReset: "@unocss/reset/normalize.css",
}),
starlightSkinPlugin(),
sveltekit(),
imagetools(),
ViteImageOptimizer(),
],
build: {
minify: "terser",
cssMinify: "lightningcss",
},
server: process.env.REDSTONE_IS_DUMB
? {
port: 4000,
strictPort: true,
hmr: {
port: 4000,
protocol: "wss",
clientPort: 443,
},
}
: {},
});