fix: twind duplicating css when className is used (#1658)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { AppProps } from "$fresh/server.ts";
|
||||
|
||||
export default function App({ Component }: AppProps) {
|
||||
return (
|
||||
<html className="bg-slate-800">
|
||||
<head className="bg-slate-800">
|
||||
<meta charSet="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>fresh-foo</title>
|
||||
</head>
|
||||
<body className="bg-slate-800">
|
||||
<Component />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function Page() {
|
||||
return <h1>it works</h1>;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
||||
|
||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
||||
|
||||
const links: string[] = [];
|
||||
for (const file of Deno.readDirSync(__dirname)) {
|
||||
if (file.name.startsWith("index")) continue;
|
||||
const name = path.basename(file.name, path.extname(file.name));
|
||||
links.push(name);
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div class="mx-auto max-w-md">
|
||||
<h1 class="text-3xl font-bold my-8">Tests</h1>
|
||||
<ul class="pl-4">
|
||||
{links.map((link) => {
|
||||
return (
|
||||
<li key={link} class="list-disc">
|
||||
<a href={`/${link}`} class="underline">{link}</a>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user