Created
February 21, 2017 10:07
-
-
Save arnemart/edc24aa95985555cf7b45bf65a76417b to your computer and use it in GitHub Desktop.
PostCSS plugin to make every declaration !important
This file contains 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-everything-is-important', function () { | |
return function (css) { | |
css.walkDecls(function (decl) { | |
decl.important = true; | |
}); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment