* Fixed issue [#129](https://github.com/GoalSmashers/clean-css/issues/129) - rebasing imported urls.
* Fixed issue [#130](https://github.com/GoalSmashers/clean-css/issues/130) - better code modularity.
* Fixed issue [#135](https://github.com/GoalSmashers/clean-css/issues/135) - require node.js 0.8+.
+* Renamed lib's `debug` option to `benchmark` when doing per-minification benchmarking.
1.0.12 / 2013-07-19
===================
* `keepSpecialComments` - `*` for keeping all (default), `1` for keeping first one, `0` for removing all
* `keepBreaks` - whether to keep line breaks (default is false)
* `removeEmpty` - whether to remove empty elements (default is false)
-* `debug` - turns on debug mode measuring time spent on cleaning up
+* `benchmark` - turns on benchmarking mode measuring time spent on cleaning up
(run `npm run bench` to see example)
* `root` - path to resolve absolute `@import` rules and rebase relative URLs
* `relativeTo` - path with which to resolve relative `@import` rules and URLs
options.processImport = true;
// replace function
- if (options.debug) {
+ if (options.benchmark) {
var originalReplace = replace;
replace = function(pattern, replacement) {
var name = typeof pattern == 'function' ?
}
var start = process.hrtime();
-cleanCSS.process(bigcss, { debug: true });
+cleanCSS.process(bigcss, { benchmark: true });
var itTook = process.hrtime(start);
console.log('complete minification: %d ms', 1000 * itTook[0] + itTook[1] / 1000000.0);