Skip to content

Commit

Permalink
Update PostCSS to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
hail2u committed Aug 22, 2015
1 parent ef253da commit 38f50e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/css-mqpacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
sourceMap = null;
}

css.eachAtRule("media", function (atRule) {
css.walkAtRules("media", function (atRule) {
var past;
var queryList = atRule.params;
past = queries[queryList];
Expand All @@ -175,7 +175,7 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
queryLists.push(queryList);
}

atRule.removeSelf();
atRule.remove();
});

sortQueryLists(queryLists, opts.sort).forEach(function (queryList) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"fs-extra": "^0.16.0",
"minimist": "^1.1.1",
"postcss": "^4.1.0"
"postcss": "^5.0.0"
},
"devDependencies": {
"nodeunit": "^0.9.0"
Expand Down

0 comments on commit 38f50e0

Please sign in to comment.