Fixes #139 - adds consistent error and warning handling for CLI and library.
authorGoalSmashers <jakub@goalsmashers.com>
Mon, 4 Nov 2013 09:30:07 +0000 (10:30 +0100)
committerGoalSmashers <jakub@goalsmashers.com>
Mon, 4 Nov 2013 10:34:43 +0000 (11:34 +0100)
commitf77ed6ec6495637e6b46f4d2bf03682113e1e040
tree9f0fb096af6f202d40e53fd23e0a5c6154cd1bdf
parenta257c03b7c8e131155a22229b9c30a2f53098c76
Fixes #139 - adds consistent error and warning handling for CLI and library.

* Does not throw errors anymore, instead prints them out to STDERR and exits with status 1.
* Adds two new fields to CleanCSS objects - warnings and errors.
* Updates imports/inliner.js to not act as a singleton.
* Adds 'both root and output file given' warning to inliner.
History.md
bin/cleancss
lib/clean.js
lib/images/url-rebase.js
lib/imports/inliner.js
test/binary-test.js
test/custom-test.js
test/unit-test.js