Skip to content

Commit 0923082

Browse files
committedFeb 28, 2017
some tweaks
1 parent 3342dff commit 0923082

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
 

‎README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ console.log(minifiedCss);
6969

7070
Minify `source` CSS passed as `String`.
7171

72-
Returns an object with properties:
73-
74-
- css `String` – resulting CSS
75-
- map `Object` – instance of [`SourceMapGenerator`](https://github.com/mozilla/source-map#sourcemapgenerator) or `null`
76-
7772
```js
7873
var result = csso.minify('.test { color: #ff0000; }', {
7974
restructure: false, // don't change CSS structure, i.e. don't merge declarations, rulesets etc
@@ -85,6 +80,11 @@ console.log(result.css);
8580
// > .test{color:red}
8681
```
8782

83+
Returns an object with properties:
84+
85+
- css `String` – resulting CSS
86+
- map `Object` – instance of [`SourceMapGenerator`](https://github.com/mozilla/source-map#sourcemapgenerator) or `null`
87+
8888
Options:
8989

9090
- sourceMap
@@ -137,10 +137,14 @@ console.log(result.css);
137137

138138
### compress(ast[, options])
139139

140-
Does the main task – compress AST.
140+
Does the main task – compress an AST.
141141

142142
> NOTE: `compress()` performs AST compression by transforming input AST by default (since AST cloning is expensive and needed in rare cases). Use `clone` option with truthy value in case you want to keep input AST untouched.
143143
144+
Returns an object with properties:
145+
146+
- ast `Object` – resulting AST
147+
144148
Options:
145149

146150
- restructure

0 commit comments

Comments
 (0)
Please sign in to comment.