chushihua
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
const postcss = require('postcss')
|
||||
|
||||
module.exports = postcss.plugin('trim', opts => css => {
|
||||
css.walk(({ type, raws }) => {
|
||||
if (type === 'rule' || type === 'atrule') {
|
||||
raws.before = raws.after = '\n'
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user