Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit d1564a2

Browse files
author
Sven
committed
Merge pull request #8 from jonathantneal/update/postcss-5.0
Update to PostCSS 5
2 parents 2fe38c8 + d987952 commit d1564a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = postcss.plugin('pseudoelements', function(options) {
1515
var replacements = new RegExp('::(' + selectors.join('|') + ')', 'gi');
1616

1717
return function(css) {
18-
css.eachRule(function(rule) {
18+
css.walkRules(function(rule) {
1919
rule.selector = rule.selector.replace(replacements, ':$1');
2020
});
2121
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-pseudoelements",
3-
"version": "2.2.0",
3+
"version": "3.0.0",
44
"description": "PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)",
55
"main": "index.js",
66
"scripts": {
@@ -28,6 +28,6 @@
2828
"should": "^5.0.0"
2929
},
3030
"dependencies": {
31-
"postcss": "^4.1.11"
31+
"postcss": "^5.0.4"
3232
}
3333
}

0 commit comments

Comments
 (0)