Simplify implementation, remove unnecessary new features

This commit is contained in:
Adam Wathan 2020-07-14 20:53:18 -04:00
parent fc1d4c4cb1
commit 4169bb1ac2
7 changed files with 29 additions and 312 deletions

View file

@ -24,6 +24,15 @@ export default function(getConfig) {
substituteResponsiveAtRules(config),
substituteScreenAtRules(config),
substituteClassApplyAtRules(config, processedPlugins.utilities),
function(css) {
css.walkAtRules('bucket', atRule => {
const bucket = atRule.params
atRule.before(postcss.comment({ text: `tailwind start ${bucket}` }))
atRule.before(atRule.nodes)
atRule.before(postcss.comment({ text: `tailwind end ${bucket}` }))
atRule.remove()
})
},
purgeUnusedStyles(config),
]).process(css, { from: _.get(css, 'source.input.file') })
}