mirror of
https://github.com/C4illin/ConvertX.git
synced 2025-10-23 16:14:08 +00:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import tailwind from "@tailwindcss/postcss";
|
|
import postcss from "postcss";
|
|
|
|
export const generateTailwind = async () => {
|
|
const result = await Bun.file("./src/main.css")
|
|
.text()
|
|
.then((sourceText) => {
|
|
return postcss([tailwind]).process(sourceText, {
|
|
from: "./src/main.css",
|
|
to: "./public/generated.css",
|
|
});
|
|
});
|
|
|
|
return result;
|
|
};
|