Skip to content

Commit 7dfdb02

Browse files
authored
use "?url" suffix in "tailwind.css" import (Remix) (#4945)
Importing `tailwind.css` is incorrect as it will treat that file as a CSS Module, throwing that it has no `default` export. Instead, the tutorial relies on the import returning a _URL_ to the stylesheet. Adding `?url` to the import specifier is the way to go.
1 parent 28f34ed commit 7dfdb02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/www/content/docs/installation/remix.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
In your `app/root.tsx` file, import the `tailwind.css` file:
7979

8080
```js {1, 4}
81-
import styles from "./tailwind.css"
81+
import styles from "./tailwind.css?url"
8282

8383
export const links: LinksFunction = () => [
8484
{ rel: "stylesheet", href: styles },

0 commit comments

Comments
 (0)