diff --git a/app/root.tsx b/app/root.tsx index 8a8de7c..c9dbd86 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -1,4 +1,3 @@ -import { cssBundleHref } from "@remix-run/css-bundle"; import type { LinksFunction } from "@remix-run/node"; import { Links, @@ -8,12 +7,9 @@ import { Scripts, ScrollRestoration, } from "@remix-run/react"; -import styles from "./tailwind.css"; -export const links: LinksFunction = () => [ - ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), - { rel: "stylesheet", href: styles }, -]; +//css should be imported as a side effect for vite +import "./tailwind.css"; export default function App() { return ( @@ -27,8 +23,8 @@ export default function App() {