diff --git a/docs/guides/styling.md b/docs/guides/styling.md index 69322b73dd3..672be5f35db 100644 --- a/docs/guides/styling.md +++ b/docs/guides/styling.md @@ -790,7 +790,7 @@ import { cssBundleHref } from "@remix-run/css-bundle"; export const links: LinksFunction = () => { return [ - { rel: "stylesheet", href: cssBundleHref }, + ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), // ... ]; };