trim.js 281 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 var postcss = require('postcss') module.exports = postcss.plugin('trim', function (opts) { return function (css) { css.walk(function (node) { if (node.type === 'rule' || node.type === 'atrule') { node.raws.before = node.raws.after = '\n' } }) } })