Skip to content

Commit

Permalink
cleanup leftover @layer nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jul 1, 2021
1 parent 9349716 commit 5bd2425
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/jit/lib/expandTailwindAtRules.js
Expand Up @@ -238,5 +238,12 @@ export default function expandTailwindAtRules(context) {

// Clear the cache for the changed files
context.changedContent = []

// Cleanup any leftover @layer atrules
root.walkAtRules('layer', (rule) => {
if (Object.keys(layerNodes).includes(rule.params)) {
rule.remove()
}
})
}
}

0 comments on commit 5bd2425

Please sign in to comment.