grunt-css-crunch

0.1.0 • Public • Published

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

/grunt-css-crunch/

    Package Sidebar

    Install

    npm i grunt-css-crunch

    Weekly Downloads

    1

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • dragonworx