MCPcopy Index your code
hub / github.com/freshframework/fresh / tailwind

Function tailwind

packages/plugin-tailwindcss-v3/src/mod.ts:53–72  ·  view source on GitHub ↗
(
  builder: Builder,
  options: TailwindPluginOptions = {},
)

Source from the content-addressed store, hash-verified

51}
52
53export function tailwind(
54 builder: Builder,
55 options: TailwindPluginOptions = {},
56): void {
57 const processor = initTailwind(builder.config, options);
58
59 builder.onTransformStaticFile(
60 { pluginName: "tailwind", filter: /\.css$/ },
61 async (args) => {
62 const instance = await processor;
63 const res = await instance.process(args.text, {
64 from: args.path,
65 });
66 return {
67 content: res.content,
68 map: res.map?.toString(),
69 };
70 },
71 );
72}
73
74const CONFIG_EXTENSIONS = ["ts", "js", "mjs"];
75

Callers

nothing calls this directly

Calls 3

initTailwindFunction · 0.85
onTransformStaticFileMethod · 0.80
processMethod · 0.80

Tested by

no test coverage detected