From 3f20c01a98eb0a7bc0350896aba98baf124107bf Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 25 Dec 2014 19:31:43 +0200 Subject: [PATCH] Update README.md Remove obsolete info about 1.x to 2.x upgrade now that 3.x is out. --- README.md | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/README.md b/README.md index b0df9aa0..db087a7c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ npm install clean-css #### Command-line interface (CLI) - no breaking changes. -#### Module interface +#### Node.js module * `noAdvanced` became `advanced` - make sure to reverse the value; * `noAggressiveMerging` became `aggressiveMerging` - make sure to reverse the value; @@ -37,33 +37,6 @@ npm install clean-css * `minify` method returns a hash instead of a string now, so use `new CleanCSS().minify(source).styles` instead of `new CleanCSS().minify(source)`. This change is due to addition of source-maps. * `stats`, `errors`, and `warnings` are now a properties of a hash returned by `minify` method (see above) instead of CleanCSS instance. -### How to upgrade clean-css from 1.x to 2.x? - -#### Command-line interface (CLI) - -``` -npm update clean-css -``` - -or point `package.json` to version 2.x. That's it! - -#### Node.js module - -Update `clean-css` as for CLI above. -Then change your JavaScript code from: - -```js -var minimized = CleanCSS.process(source, options); -``` - -into - -```js -var minimized = new CleanCSS(options).minify(source); -``` - -And you are done. - ### How to use clean-css CLI? Clean-css accepts the following command line arguments (please make sure -- 2.34.1