+[4.2.1 / 2018-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v4.2.0...HEAD)
+==================
+
+* Fixes giving `breakWith` option via a string.
+
[4.2.0 / 2018-08-02](https://github.com/jakubpawlowicz/clean-css/compare/4.1...4.2.0)
==================
accumulator[name] = parseInt(value);
} else if (name == 'indentWith') {
accumulator[name] = mapIndentWith(value);
+ } else if (name == 'breakWith') {
+ accumulator[name] = mapBreakWith(value);
}
return accumulator;
]
}, { format: { breaks: { afterProperty: true }, breakWith: 'crlf' } })
)
+ .addBatch(
+ optimizerContext('CRLF line with format as string', {
+ 'uses specified one': [
+ '.block{color:red;display:block}',
+ '.block{color:red;\r\ndisplay:block\r\n}'
+ ]
+ }, { format: 'breaks:afterProperty=on;breakWith:crlf' })
+ )
.addBatch(
optimizerContext('LF line breaks', {
'uses specified one': [