grunt-contrib-cssmin
Advanced tools
Comparing version 0.12.0 to 0.12.1
{ | ||
"name": "grunt-contrib-cssmin", | ||
"description": "Minify CSS", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Grunt Team", |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-cssmin v0.12.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ntgfqc3ppk533m84/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-cssmin/branch/master) | ||
# grunt-contrib-cssmin v0.12.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ntgfqc3ppk533m84/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-cssmin/branch/master) | ||
@@ -114,2 +114,2 @@ > Minify CSS | ||
*This file was generated on Mon Feb 09 2015 16:36:00.* | ||
*This file was generated on Mon Feb 09 2015 22:15:44.* |
@@ -20,16 +20,15 @@ 'use strict'; | ||
grunt.registerMultiTask('cssmin', 'Minify CSS', function () { | ||
var options = this.options({ | ||
report: 'min', | ||
sourceMap: false | ||
}); | ||
this.files.forEach(function (file) { | ||
var options = this.options({ | ||
report: 'min', | ||
sourceMap: false | ||
}); | ||
this.files.forEach(function (file) { | ||
var availableFiles = getAvailableFiles(file.src); | ||
var compiled = ''; | ||
options.target = file.dest; | ||
try { | ||
compiled = new CleanCSS({ | ||
sourceMap: options.sourceMap, | ||
target: file.dest | ||
}).minify(availableFiles); | ||
compiled = new CleanCSS(options).minify(availableFiles); | ||
} catch (err) { | ||
@@ -54,4 +53,4 @@ grunt.log.error(err); | ||
grunt.verbose.writeln('File ' + chalk.cyan(file.dest) + ' created ' + chalk.dim(maxmin(unCompiledCssString, compiledCssString, options.report === 'gzip'))); | ||
}); | ||
}, this); | ||
}); | ||
}; |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
8724
45