Simplify implementation, remove unnecessary new features
This commit is contained in:
parent
fc1d4c4cb1
commit
4169bb1ac2
7 changed files with 29 additions and 312 deletions
|
|
@ -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') })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue