Prepend a shadow lookup table when no @tailwind rules are in the tree

This commit is contained in:
Adam Wathan 2020-08-13 20:16:56 -04:00
parent c252e33254
commit 8646c94dd5
5 changed files with 37 additions and 16 deletions

View file

@ -40,6 +40,9 @@ export default function(getConfig) {
convertLayerAtRulesToControlComments(config),
substituteScreenAtRules(config),
substituteClassApplyAtRules(config, getProcessedPlugins),
function(css) {
css.walkAtRules('tailwind', rule => rule.remove())
},
purgeUnusedStyles(config),
]).process(css, { from: _.get(css, 'source.input.file') })
}