fic: use vite css side effects
This commit is contained in:
parent
edc345fcdf
commit
cdedc10e56
|
@ -9,10 +9,11 @@ import {
|
||||||
} from "@remix-run/react";
|
} from "@remix-run/react";
|
||||||
import Header from "@/components/LayoutHeader"; // Adjust the import path as needed
|
import Header from "@/components/LayoutHeader"; // Adjust the import path as needed
|
||||||
import Footer from "@/components/LayoutFooter"; // Adjust the import path as needed
|
import Footer from "@/components/LayoutFooter"; // Adjust the import path as needed
|
||||||
import globalStyles from "../styles/global.scss?url";
|
import "../styles/global.scss";
|
||||||
|
import { cssBundleHref } from "@remix-run/css-bundle"; // Adjust the import path as needed
|
||||||
|
|
||||||
export const links: LinksFunction = () => [
|
export const links: LinksFunction = () => [
|
||||||
{ rel: "stylesheet", href: globalStyles },
|
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
|
||||||
// Add your Google font links here
|
// Add your Google font links here
|
||||||
// Example: { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400&display=swap" },
|
// Example: { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400&display=swap" },
|
||||||
// Example: { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Jaldi:wght@400&display=swap" },
|
// Example: { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Jaldi:wght@400&display=swap" },
|
||||||
|
|
Loading…
Reference in New Issue