forked from encode42/flags.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
30 lines (29 loc) · 910 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
import { defineConfig } from "vite";
import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import { qwikSpeakInline } from "qwik-speak/inline";
import tsconfigPaths from "vite-tsconfig-paths";
import supportedLocales from "./src/generated/supportedLocales.json";
export default defineConfig(() => {
return {
"plugins": [
qwikCity({
"routesDir": "src/route",
"trailingSlash": false
}),
qwikVite(),
qwikSpeakInline({
"supportedLangs": supportedLocales,
"defaultLang": "en",
"splitChunks": true
}),
tsconfigPaths()
],
"clearScreen": false,
"preview": {
"headers": {
"Cache-Control": "public, max-age=600"
}
}
};
});