Skip to content

Commit 5657fcd

Browse files
committed
Upgrade postcss to latest
1 parent 7115e7c commit 5657fcd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function generatePreset(opts) {
66
opts = opts || {};
77

88
return function(css) {
9-
css.eachAtRule(function (atRule) {
9+
css.walkAtRules(function (atRule) {
1010
if (atRule.name !== 'generate-preset') {
1111
return;
1212
}
@@ -58,7 +58,7 @@ function generatePreset(opts) {
5858
root.insertBefore(atRule, rule);
5959
});
6060

61-
atRule.removeSelf();
61+
atRule.remove();
6262
});
6363
};
6464
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"url": "https://github.com/simonsmith/postcss-generate-preset.git"
1111
},
1212
"dependencies": {
13-
"postcss": "^4.1.5"
13+
"postcss": "^5.0.13"
1414
},
1515
"devDependencies": {
16-
"gulp-eslint": "0.9.0",
17-
"gulp-mocha": "2.0.1",
18-
"chai": "2.2.0",
19-
"gulp": "3.8.11"
16+
"gulp-eslint": "1.1.1",
17+
"gulp-mocha": "2.2.0",
18+
"chai": "3.4.1",
19+
"gulp": "3.9.0"
2020
},
2121
"scripts": {
2222
"test": "gulp"

0 commit comments

Comments
 (0)