grunt-rework

work on your css files with rework

npm install grunt-rework
2 downloads in the last day
26 downloads in the last week
92 downloads in the last month

build status

grunt-rework

Grunt plugin to rework your css files.

Getting Started

Install this grunt plugin next to your project's Gruntfile with: npm install grunt-rework

Then add this line to your project's gruntejs gruntfile:

grunt.loadNpmTasks('grunt-rework');

Then specify what files to compress in your config:

grunt.initConfig({
  rework: {
    'dest/index.css': 'src/index.css',
    options: {
      toString: {compress: true},
      use: [
        ['rework.keyframes'],
        ['rework.prefix', 'border-radius'],
        ['rework.prefix', 'box-shadow']
      ],
      vendors: ['-moz-', '-webkit-']
    }
  }
});

Options

rework options

vendors(prefixes)

Define vendor prefixes that plugins may utilize.

use(fn)

Use the given plugin fn.

toString(options)

Return the string representation of the manipulated css. Optionally you may compress the output with .toString({ compress: true })

input/output files

src source string processName can help you formating the output instead of using dest

Release History

  • 0.0.5 Update rework version.
  • 0.0.3 New use syntax
  • 0.0.2 Allow use of rework or own functions
  • 0.0.1 First Release

License

Copyright (c) 2013 Jean-S├ębastien Ney Licensed under the MIT license.

npm loves you