rework-suffix

0.0.3 • Public • Published

Build Status

rework-suffix

visionmedia/rework plugin for adding suffixes to CSS declarations, e.g. !important.

Example

input.css

body {
  color: red;
}

rework.js

 
var reworkSuffix = require('rework-suffix') 
 
var important = reworkSuffix.suffix(' !important');
// Could also just do:
//   var important = require('rework-suffix')
// This is the default.
 
var css = rework(read('input.css', 'utf8'))
  .use(important)
  .toString()
 
write('output.css', css)

output.css

body {
  color: red !important;
}

Readme

Keywords

none

Package Sidebar

Install

npm i rework-suffix

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • timoxley