Skip to content

Commit

Permalink
fix: css hash difference on client and server build
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Feb 10, 2024
1 parent 9bcbbd2 commit 1bd0caa
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import type {
LinksFunction,
MetaFunction,
LoaderFunction,
} from '@remix-run/cloudflare';
import type { MetaFunction, LoaderFunction } from '@remix-run/cloudflare';
import * as React from 'react';
import {
Link,
Expand All @@ -14,11 +10,12 @@ import {
isRouteErrorResponse,
useRouteError,
} from '@remix-run/react';
import stylesUrl from '~/styles.css?url';
import '~/styles.css';

export const links: LinksFunction = () => {
return [{ rel: 'stylesheet', href: stylesUrl }];
};
// We will rollback to loading CSS through links when `.css?url` is supported
// export const links: LinksFunction = () => {
// return [{ rel: 'stylesheet', href: stylesUrl }];
// };

export const meta: MetaFunction = () => {
return [
Expand Down

0 comments on commit 1bd0caa

Please sign in to comment.