fix code style issues
This commit is contained in:
parent
498c53c582
commit
ed71ee438d
2 changed files with 16 additions and 8 deletions
|
|
@ -29,13 +29,15 @@ export default function(config) {
|
|||
return cloned
|
||||
})
|
||||
)
|
||||
finalRules.push(mediaQuery)
|
||||
|
||||
if (mediaQuery.nodes.length) {
|
||||
css.append(mediaQuery)
|
||||
}
|
||||
finalRules.push(mediaQuery)
|
||||
})
|
||||
|
||||
const hasScreenRules = finalRules.some(i => i.nodes.length !== 0)
|
||||
if (!hasScreenRules) {
|
||||
return
|
||||
}
|
||||
|
||||
let includesScreenUtilitiesExplicitly = false
|
||||
css.walkAtRules('tailwind', atRule => {
|
||||
if (atRule.params === 'screens') {
|
||||
|
|
@ -44,7 +46,7 @@ export default function(config) {
|
|||
}
|
||||
})
|
||||
|
||||
if(! includesScreenUtilitiesExplicitly) {
|
||||
if (!includesScreenUtilitiesExplicitly) {
|
||||
css.append(finalRules)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue