feat: minify tailwind css in prod + other enhancements (#2059)
This commit is contained in:
+10
-6
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user