Created
December 23, 2015 15:46
-
-
Save omgmog/c90d7b17fd2f340deb3d to your computer and use it in GitHub Desktop.
Nope for PostCSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var postcss = require('postcss'); | |
module.exports = postcss.plugin('postcss-nope', function (opts) { | |
opts = opts || {}; | |
return function (css) { | |
css.eachDecl(function transformDecl(decl) { | |
decl.value = decl.value.replace('nope', 'none'); | |
}); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment