fix(data): keep native light-dark() so the shared nav menus get their colours (#62660)

This commit is contained in:
Adam
2026-11-07 16:20:03 -06:00
committed by GitHub
Unverified
parent e45af15e84
commit 3bf90a2406
+4
View File
@@ -44,5 +44,9 @@ export default defineConfig({
build: {
minify: "esbuild",
cssMinify: true,
// Browsers with native light-dark(), as services/site targets. For older targets the minifier lowers light-dark()
// to --lightningcss-light/--lightningcss-dark variables set only where a rule declares color-scheme, and the shared
// nav menus (packages/nav-menus), which set theirs inline, lost every colour.
cssTarget: ["chrome123", "edge123", "firefox120", "safari17.5"],
},
})