==================
* Fixed issue [#199](https://github.com/GoalSmashers/clean-css/issues/199) - keep line breaks with no advanced optimizations.
+* Fixed issue [#203](https://github.com/GoalSmashers/clean-css/issues/203) - Buffer as a first argument to minify method.
[2.0.4 / 2013-12-19](https://github.com/GoalSmashers/clean-css/compare/v2.0.3...v2.0.4)
==================
var context = this.context;
var lineBreak = this.lineBreak;
+ if (Buffer.isBuffer(data))
+ data = data.toString();
+
if (options.debug) {
startedAt = process.hrtime();
stats.originalSize = data.length;
assert.equal(minifier.errors.length, 1);
assert.equal(minifier.errors[0], 'Broken @import declaration of "/some/fake/file"');
}
+ },
+ 'buffer passed in': {
+ 'topic': function() {
+ return new CleanCSS().minify(new Buffer('@import url(test/data/partials/one.css);'));
+ },
+ 'should be processed correctly': function(minified) {
+ assert.equal('.one{color:red}', minified);
+ }
}
}).export(module);