From 7f4ae787199af7055afc0d25b326675a7fdd5501 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Thu, 20 Aug 2015 07:23:17 +0100 Subject: [PATCH] Removes 2.x -> 3.x upgrade guide. We are at 3.4 already and if anyone needs it a 3.x branch still has it. --- README.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/README.md b/README.md index 4e210f27..40857bcb 100644 --- a/README.md +++ b/README.md @@ -25,19 +25,6 @@ Node.js 0.10.0+ (tested on CentOS, Ubuntu, OS X 10.6+, and Windows 7+) npm install clean-css ``` -### How to upgrade clean-css from 2.x to 3.x? - -#### Command-line interface (CLI) - no breaking changes. - -#### Node.js module - -* `noAdvanced` became `advanced` - make sure to reverse the value; -* `noAggressiveMerging` became `aggressiveMerging` - make sure to reverse the value; -* `noRebase` became `rebase` - make sure to reverse the value; -* no longer possible to use `CleanCSS` as a function as `new CleanCSS` is always required; -* `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 use clean-css CLI? Clean-css accepts the following command line arguments (please make sure -- 2.34.1