mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-08 04:08:24 +00:00
Turnstile and OTS update
This commit is contained in:
@@ -52,6 +52,16 @@ export default defineConfig({
|
||||
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
build: {
|
||||
// Never inline assets as data URIs. The default (4096 bytes) causes Vite
|
||||
// to inline the smallest font subsets (e.g. cyrillic-ext woff2) as
|
||||
// data:font/woff2 base64, which (a) requires data: in font-src and (b)
|
||||
// triggers Chromium "OTS parsing error: Size of decompressed WOFF 2.0 is
|
||||
// less than compressed size" warnings on those inlined subsets. Forcing
|
||||
// every asset to a real file keeps font-src tight at 'self' and avoids
|
||||
// the OTS parse errors.
|
||||
assetsInlineLimit: 0,
|
||||
},
|
||||
},
|
||||
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user