A PostCSS plugin that formats single-property rules on oneline.
postcss([
require('postcss-single-line')
])
/* Input example */
.foo {
opacity: .5;
}
.bar {
opacity: .5;
outline: 1px solid red;
}
/* Output example */
.foo { opacity: .5; }
.bar {
opacity: .5;
outline: 1px solid red;
}