First, setup your project with grunt.
Then, install the grunt-rework
plugin:
npm install --save-dev grunt-rework
Add this line to your Gruntfile:
grunt.loadNpmTasks('grunt-rework');
Then specify what files to rework in your Grunt config:
var rework_import = require('rework-import');
grunt.initConfig({
rework: {
'dest/index.css': 'src/index.css',
options: {
toString: {compress: true},
use: [
rework_import
]
},
prod: {
options: {
toString: {
compress: true
}
},
files: {
'dest/index.css': 'src/index.css',
}
}
}
});
Type: Array
Default: []
An array of rework plugin functions to use.
Type: Object
Default: {}
Options to pass to rework's toString
method.
- 0.1.0 Update to rework 1.0, remove vendors option, remove support for built-in rework plugin
- 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
Copyright (c) 2013 Jean-Sébastien Ney Licensed under the MIT license.