Created
February 19, 2018 15:25
-
-
Save ericsaboia/eec59a45df48fb981fa5d8d451d8fb22 to your computer and use it in GitHub Desktop.
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-clean-var-backslash', function() { | |
return function (css) { | |
css.walkRules(function(rule) { | |
rule.selector = rule.selector.replace(/^\\--/, '--'); | |
}); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment