Grunt plugin to rework your css files.
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-']
}
}
});
Define vendor prefixes that plugins may utilize.
Use the given plugin fn.
Return the string representation of the manipulated css. Optionally you may compress the output with .toString({ compress: true })
src
source string
processName
can help you formating the output instead of using dest
- 0.0.3 New
use
syntax - 0.0.2 Allow use of rework or own functions
- 0.0.1 First Release
Copyright (c) 2013 Jean-Sébastien Ney Licensed under the MIT license.