开发者社区> 镜像站> NPM> grunt-contrib-mincss
grunt-contrib-mincss
Compress CSS files.
Last updated 8 years ago by tkellen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-contrib-mincss 
SYNC missed versions from official npm registry.

grunt-contrib-mincss Build Status

Compress CSS files.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-contrib-mincss

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-contrib-mincss');

Overview

Inside your grunt.js file, add a section named mincss. This section specifies the files to compress with clean-css.

Parameters

files object

This defines what files this task will process and should contain key:value pairs.

The key (destination) should be an unique filepath (supports grunt.template) and the value (source) should be a filepath or an array of filepaths (supports minimatch).

Note: When the value contains an array of multiple filepaths, the contents are concatenated in the order passed.

Config Example

mincss: {
  compress: {
    files: {
      "path/to/output.css": ["path/to/input_one.css", "path/to/input_two.css"]
    }
  }
}

--

Task submitted by Tim Branyen.

Current Tags

  • 0.3.2                                ...           latest (8 years ago)
  • 0.4.0-rc7                                ...           master (7 years ago)

6 Versions

  • 0.4.0-rc7 [deprecated]           ...           7 years ago
  • 0.3.2                                ...           8 years ago
  • 0.3.1 [deprecated]           ...           8 years ago
  • 0.3.0 [deprecated]           ...           8 years ago
  • 0.2.0 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
Maintainers (2)
Downloads
Today 12
This Week 25
This Month 25
Last Day 1
Last Week 25
Last Month 44
Dependencies (3)
Dev Dependencies (2)