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
+18
View File
@@ -0,0 +1,18 @@
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import twind from "$fresh/plugins/twind.ts";
import twindV1 from "$fresh/plugins/twindv1.ts";
import manifest from "./fresh.gen.ts";
const twindPlugin = Deno.env.has("TWIND_V1")
? twindV1({
selfURL: import.meta.url,
// deno-lint-ignore no-explicit-any
} as any)
: twind({ selfURL: import.meta.url });
await start(manifest, { plugins: [twindPlugin] });