Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
description: "PostCSS plugin to remove any `!important` declarations from all rules"
import * as postcss from 'postcss';
module.exports = postcss.plugin('postcss-remove-important', (options = {}) => {
return css => {
css.walkDecls(decl => {
decl.important = false;
});
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment