Adds !important tags to your CSS styles.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-css-important --save-dev
In your project's Gruntfile, add a section named
css_important to the data object passed into
If set to
true CSS file output will be minified. If set to
false CSS file output will not be minified, even if the input file was minified.
In this example, src/style.css will be processed and output to dest/style.css with
!important tags added to all of the styles.
In this example, the destination file will be minified.
In this example running
grunt css_important:dist will result in a minified output file and running
grunt css_important:dev will result in an unminified output file.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.