Code Monkey home page Code Monkey logo

grunt-rework's Introduction

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.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.

grunt-rework's People

Contributors

arnihermann avatar gudmundur avatar jney avatar

Watchers

 avatar

Forkers

gudmundur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.