perf: remove unused UI catalog and external font
This commit is contained in:
+6
-2
@@ -65,6 +65,9 @@ const config: AppConfig = {
|
||||
|
||||
styles: {
|
||||
entry: "app/styles/global.css",
|
||||
// The docs use their own semantic HTML/CSS rather than the full 146-component
|
||||
// UI catalog, so do not put that catalog on every route's critical path.
|
||||
includeUi: false,
|
||||
|
||||
// Tailwind v4 build. Runs once at dev-serve time (cached; re-run on restart)
|
||||
// and at `wrnexus build`. `@tailwindcss/cli` writes to stdout, so we capture
|
||||
@@ -78,8 +81,9 @@ const config: AppConfig = {
|
||||
},
|
||||
|
||||
fonts: {
|
||||
sans: '"Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif',
|
||||
google: [{ family: "Plus Jakarta Sans", weights: [400, 500, 600, 700, 800] }],
|
||||
// A system stack avoids a render-critical third-party font request on the
|
||||
// documentation site. Applications can still opt into Google/local fonts.
|
||||
sans: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
||||
},
|
||||
|
||||
// Fonts — the framework emits optimized <head> markup (preconnect, subsetted
|
||||
|
||||
Reference in New Issue
Block a user