We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d52d86 commit 2603ee2Copy full SHA for 2603ee2
lib/stylePlugins/trim.ts
@@ -4,7 +4,8 @@ import * as postcss from 'postcss'
4
export default postcss.plugin('trim', () => (css: Root) => {
5
css.walk(({ type, raws }) => {
6
if (type === 'rule' || type === 'atrule') {
7
- raws.before = raws.after = '\n'
+ if (raws.before) raws.before = '\n'
8
+ if (raws.after) raws.after = '\n'
9
}
10
})
11
0 commit comments