Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 6a51eeb

Browse files
committed
Merge pull request #4 from johnotander/master
Update cssstats version to AST compatible version, 1.0.0
2 parents aaa023a + 3d5d339 commit 6a51eeb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = postcss.plugin('cssstats', function(options, callback) {
1414
}
1515

1616
return function(css, postcssResult) {
17-
// XXX TODO: cssstats should also be able to handle an AST
18-
callback(cssstats(css.toString()));
17+
callback(cssstats(css));
1918
};
2019
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "postcss-cssstats",
33
"description": "A PostCSS plugin for cssstats.",
44
"author": "John Otander",
5-
"version": "0.0.1",
5+
"version": "1.0.0",
66
"main": "index.js",
77
"directories": {
88
"test": "test"
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/cssstats/postcss-cssstats",
3131
"dependencies": {
32-
"cssstats": "^1.5.1",
32+
"cssstats": "1.6.0",
3333
"lodash": "^3.8.0",
3434
"postcss": "^4.1.9"
3535
},

0 commit comments

Comments
 (0)