Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit fa5979a

Browse files
committed
1.8.0
1 parent ab51614 commit fa5979a

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# 1.8.0 - 2015-06-29
12

23
- Fixed: replacement of `postcss-log-warnings` (deprecated) by `postcss-reporter`
34
([#162](https://github.com/cssnext/cssnext/issues/162))
45
- Fixed: CLI now add `to` option automatically
56
([#159](https://github.com/cssnext/cssnext/issues/159))
67
If you were happy with the previous CLI behavior (which was not rebasing url), you should probably just add the `--no-url` to keep the CSS as it was.
8+
- Changed: `compress` option now use cssnano v2.x
9+
([#166](https://github.com/cssnext/cssnext/issues/166))
710
- Added: CLI output file dirname is now automatically created (using `mkdirp`)
811
([#146](https://github.com/cssnext/cssnext/issues/146))
912

docs/content/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ If you want, you can pass option to the PostCSS plugins used
187187
}
188188

189189
console: {
190-
// see https://github.com/davidtheclark/postcss-log-warnings
190+
// see https://github.com/postcss/postcss-reporter
191191
},
192192
}
193193
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cssnext",
3-
"version": "1.7.1",
3+
"version": "1.8.0",
44
"description": "Use tomorrow's CSS syntax, today",
55
"keywords": [
66
"css",

src/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,11 @@ function cssnext(string, options) {
137137
if (options.compress) {
138138
const nano = require("cssnano")
139139
postcss.use(
140-
nano({
141-
...(
142-
typeof options.compress === "object"
143-
? options.compress
144-
: {}
145-
),
146-
})
140+
nano(
141+
typeof options.compress === "object"
142+
? options.compress
143+
: {}
144+
)
147145
)
148146
}
149147

0 commit comments

Comments
 (0)