Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5edc4aa

Browse files
authored
No eachDecl method
I tried the custom processor example but to no avail. The problem, which was pointed out #139, was that there is no `eachDecl` method. However, there is a `walkDecls`, which I have used in the updated example.
1 parent 7e388ec commit 5edc4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ gulp.task('default', function () {
7474
var postcss = require('gulp-postcss');
7575
var cssnext = require('postcss-cssnext');
7676
var opacity = function (css, opts) {
77-
css.eachDecl(function(decl) {
77+
css.walkDecls(function(decl) {
7878
if (decl.prop === 'opacity') {
7979
decl.parent.insertAfter(decl, {
8080
prop: '-ms-filter',

0 commit comments

Comments
 (0)