Skip to content

Commit 47be35a

Browse files
Remove @tailwind utility nodes with parameters
1 parent 822e053 commit 47be35a

File tree

1 file changed

+4
-1
lines changed
  • packages/tailwindcss/src

1 file changed

+4
-1
lines changed

packages/tailwindcss/src/ast.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ export function toCss(ast: AstNode[]) {
185185

186186
// Rule
187187
if (node.kind === 'rule') {
188-
if (node.selector === '@tailwind utilities') {
188+
if (
189+
node.selector === '@tailwind utilities' ||
190+
node.selector.startsWith('@tailwind utilities ')
191+
) {
189192
for (let child of node.nodes) {
190193
css += stringify(child, depth)
191194
}

0 commit comments

Comments
 (0)