Skip to content

Commit

Permalink
docs: asset imports are a file convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Aug 25, 2023
1 parent 3730906 commit f77588e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ Any files inside the `app` folder can be imported into your modules. Remix will:
It's most common for stylesheets, but can used for anything.

```tsx filename=app/routes/root.tsx
import type { LinksFunction } from "@remix-run/node"; // or cloudflare/deno

import banner from "./images/banner.jpg";
import styles from "./styles/app.css";

export const links: LinksFunction = () => {
export const links = () => {
return [{ rel: "stylesheet", href: styles }];
};

Expand Down

0 comments on commit f77588e

Please # to comment.