feat: minify tailwind css in prod + other enhancements (#2059)

This commit is contained in:
Marvin Hagemeister
2023-11-21 18:57:24 +01:00
committed by GitHub
parent 809a50398d
commit 1f8f9b7ec7
10 changed files with 102 additions and 9 deletions
+10 -6
View File
@@ -10,12 +10,16 @@ Deno.test("TailwindCSS - dev mode", async () => {
});
Deno.test("TailwindCSS - build mode", async () => {
await runBuild("./tests/fixture_tailwind/dev.ts");
await withFakeServe("./tests/fixture_tailwind/main.ts", async (server) => {
const res = await server.get("/styles.css");
const content = await res.text();
assertStringIncludes(content, ".text-red-600");
}, { loadConfig: true });
await runBuild("./tests/fixture_tailwind_build/dev.ts");
await withFakeServe(
"./tests/fixture_tailwind_build/main.ts",
async (server) => {
const res = await server.get("/styles.css");
const content = await res.text();
assertStringIncludes(content, ".text-red-600{");
},
{ loadConfig: true },
);
});
Deno.test("TailwindCSS - config", async () => {