0.0.2 • Published 5 years ago

postcss-unimportant v0.0.2

Weekly downloads
36
License
MIT
Repository
github
Last release
5 years ago

postcss-unimportant

PostCSS plugin to remove !important rules.

body {
  color: #000 !important;
  font-size: 16px;
}
body {
  color: #000;
  font-size: 16px;
}

Usage

Check your project for existing PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-unimportant'),
    require('autoprefixer')
  ]
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.