Compress CSS files.
Fork of grunt-contrib-cssmin meant to:
. Compress CSS files.
. Combine files via @include
This plugin requires Grunt
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-contrib-cssmin --save-dev
Run this task with the
grunt cssmin command.
cssmin:includeTask:options:// @include instructions will be relative to this pathrelativeTo: "lib/"files:'path/to/output.css': 'path/to/include.css'
The include file may have the following content:
After searching on the relativeTo directory for the including files, will be generated a single file with the combined files. Also all the url resources inside the css files will be relative to the value of this variable.
Check grunt-contrib-cssmin for more usage examples.