Skip to content

jney/grunt-rework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-rework v0.1.0 build status

rework your css files with Grunt.

Getting Started

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',
      }
    }
  }
});

rework task

Options

use

Type: Array Default: []

An array of rework plugin functions to use.

toString

Type: Object Default: {}

Options to pass to rework's toString method.

Release History

  • 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

License

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

About

use gruntjs to rework your css files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published