Skip to content

Instantly share code, notes, and snippets.

@ericsaboia
Created February 19, 2018 15:25
Show Gist options
  • Save ericsaboia/eec59a45df48fb981fa5d8d451d8fb22 to your computer and use it in GitHub Desktop.
Save ericsaboia/eec59a45df48fb981fa5d8d451d8fb22 to your computer and use it in GitHub Desktop.
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