fix: tailwind build not creating subfolders (#2145)

This commit is contained in:
Marvin Hagemeister
2023-12-06 08:57:31 +01:00
committed by GitHub
parent 7465dbd978
commit c05a6b1496
11 changed files with 109 additions and 0 deletions
+13
View File
@@ -26,6 +26,19 @@ Deno.test("TailwindCSS - build mode", async () => {
);
});
Deno.test("TailwindCSS - build mode in sub directory", async () => {
await runBuild("./tests/fixture_tailwind_build_2/dev.ts");
await withFakeServe(
"./tests/fixture_tailwind_build_2/main.ts",
async (server) => {
const res = await server.get("/foo/styles.css");
const content = await res.text();
assertStringIncludes(content, ".text-red-600{");
},
{ loadConfig: true },
);
});
Deno.test("TailwindCSS - config", async () => {
await withFakeServe(
"./tests/fixture_tailwind_config/dev.ts",