Crunches, optimizes and resolves/copies assets of css files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tasks
test
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-css-crunch

Crunches, optimizes and resolves/copies assets of css files

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-css-crunch --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-css-crunch');

The "css_crunch" task

Overview

css-crunch is a multi-task. You specify one or multiple targets, with their options. Options are passed as-is to css-crunch.

grunt.initConfig({
  css_crunch: {
    target1: {
        src: "...\\css",
        dest: "...\\css\\build\\test.min.css",
        exclude: ["*min.css"],
        reporter: 'html|console',
        minify: true,
        optimize: true,
        copy: true
    },
    target2: {
      // css-crunch options...
    },
  },
})

Release History

0.1.0 - 12/11/2013 - Initial commit