Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-unimportant

laurenashpole41MIT0.0.2

PostCSS plugin to remove !important rules

postcss, css, postcss-plugin, important

readme

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.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.0.2 (2020-01-24)

Note: Version bump only for package postcss-unimportant

0.0.1 (2020-01-13)

Note: Version bump only for package postcss-unimportant