PostCSS plugin that lets everyone know how important your CSS is
npm install mahoganyDon't let one bad apple spoil the bunch. Make them _all_ bad apples.
This is a PostCSS plugin that appends !important to every declaration in your CSS.
npm install --sav-dev mahogany``js
var postcss = require('gulp-postcss');
var gulp = require('gulp');
var mahogany = require('mahogany');
gulp.task('css', function () {
return gulp.src('./src/*.css')
.pipe(postcss([mahogany()]))
.pipe(gulp.dest('./dest'));
});
`
`css`
a {
color: red;
}`
Becomes:css`
a {
color: red !important;
}`
Andcss`
b {
font-weight: 100;
color: blue;
}`
Becomes:css``
b {
font-weight: 100 !important;
color: blue !important;
}