Last active
December 8, 2017 21:22
-
-
Save georgecrawford/acb44cae777f5d0378d1db001acefacd to your computer and use it in GitHub Desktop.
description: "PostCSS plugin to remove any `!important` declarations from all rules"
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
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