This commit is contained in:
Alex
2024-07-27 02:55:54 -04:00
parent 53ac883c18
commit 2c51fceac3
4 changed files with 1032 additions and 639 deletions

View File

@ -131,10 +131,10 @@ export function getTailwindPlugins(options: TailwindPluginOptions) {
const styles = styleMap.get(path)!;
const compiled = await compile(
styles
.map(
({ classNames, key }) =>
`.${key} {\n @apply ${without(classNames, "group").join(" ")}\n}`
)
.map(({ classNames, key }) => {
const tw = without(classNames, "group").join(" ");
return `.${key} {\n /* @apply ${tw} */\n @apply ${tw}\n}`;
})
.join("\n")
);
if (path.endsWith(".css")) {