postcss-unimportant

0.0.2 • Public • Published

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.

/postcss-unimportant/

    Package Sidebar

    Install

    npm i postcss-unimportant

    Weekly Downloads

    12

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.79 kB

    Total Files

    6

    Last publish

    Collaborators

    • laurenashpole