So this one makes sense, but I don't see why you have to have bundling when you're just linking the .css file like you would already do...
https://remix.run/docs/en/main/styling/css-modules
Remix
1 messages · Page 1 of 1 (latest)
So this one makes sense, but I don't see why you have to have bundling when you're just linking the .css file like you would already do...
https://remix.run/docs/en/main/styling/css-modules
This one I don't get at all lol
https://remix.run/docs/en/main/styling/css-imports
This makes the most sense, and sounds the way to go
https://remix.run/docs/en/main/styling/vanilla-extract
Open to suggestions & information 😄
^ BuMp ^
Still messing with this cssBundleHref thing and I am missing something. Here is what I have...
import type { LinksFunction } from "@remix-run/cloudflare";
import appStyles from "~/styles/app.css";
import { cssBundleHref } from "@remix-run/css-bundle";
//Other imports from @remix-run/react;
export const links: LinksFunction = () => [
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
{ rel: "stylesheet", href: appStyles },
];
And my css is just a css file. When I run npm run dev it is working, but when I have it built on cloudflare it doesn't work. I suppose I wonder why even have the import { cssBundleHref } from "@remix-run/css-bundle"; when the export const links: LinksFunction = () => [ is what I would have anyway? Also, why does it not work on Cloudflare?