Skip to content

XXXVII/postcss-importantly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-importantly

PostCSS plugin to add !important for every declaration.

Why do I need this?

The best way to isolate your CSS is to give maximum weight for your declarations. Adding !important is the easiest way for it.

Installation

Run npm install postcss-importantly --save-dev

In your Gulpfile use this command to process stylesheet:

gulp.src('app/*.css')
  .pipe $.postcss [require('postcss-importantly')]
  .pipe gulp.dest('.dist')

Note that plugin ignores @-rules (such as @font-face and @keywords) due to lack in browser support.

About

PostCSS plugin to add !important for every declaration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published