fix: twind duplicating css when className is used (#1658)

This commit is contained in:
Marvin Hagemeister
2023-08-17 13:01:42 +02:00
committed by GitHub
parent 69b6a8adf2
commit 6d5744861e
11 changed files with 172 additions and 4 deletions
+27
View File
@@ -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>
);
}