Download src/helpers/tailwind.ts from linuxrun/convert: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/linuxrun/convert/resolve/main/src/helpers/tailwind.ts
- Command line
-
hf download hf://spaces/linuxrun/convert/src/helpers/tailwind.ts
-
curl -L -o tailwind.ts https://huggingface.co/spaces/linuxrun/convert/resolve/main/src/helpers/tailwind.ts
377 Bytes
| 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; | |
| }; | |