Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add missing known directives
  • Loading branch information
RobinMalfait authored and thecrypticace committed Oct 10, 2024
commit 6536b7ced48a29085f645f2216cfb86830959ca7
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export function migrateMissingLayers(): Plugin {
root.each((node) => {
if (node.type === 'atrule') {
// Known Tailwind directives that should not be inside a layer.
if (node.name === 'theme' || node.name === 'utility') {
if (
node.name === 'config' ||
node.name === 'source' ||
node.name === 'theme' ||
node.name === 'utility' ||
node.name === 'variant'
) {
if (bucket.length > 0) {
buckets.push([lastLayer, bucket.splice(0)])
}
Expand Down