Socket
Socket
Sign inDemoInstall

grunt-contrib-cssmin

Package Overview
Dependencies
38
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.8.0

13

package.json
{
"name": "grunt-contrib-cssmin",
"description": "Compress CSS files.",
"version": "0.7.0",
"version": "0.8.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-cssmin",

@@ -30,8 +30,9 @@ "author": {

"dependencies": {
"clean-css": "~2.0.0",
"chalk": "~0.4.0",
"clean-css": "~2.1.0",
"grunt-lib-contrib": "~0.6.0"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-nodeunit": "~0.2.1",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-nodeunit": "~0.3.0",
"grunt-contrib-clean": "~0.5.0",

@@ -46,3 +47,7 @@ "grunt-contrib-internal": "~0.4.6",

"gruntplugin"
],
"files": [
"tasks",
"LICENSE-MIT"
]
}

@@ -1,2 +0,2 @@

# grunt-contrib-cssmin v0.6.2 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin)
# grunt-contrib-cssmin v0.8.0 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin)

@@ -8,3 +8,3 @@ > Compress CSS files.

## Getting Started
This plugin requires Grunt `~0.4.0`
This plugin requires Grunt `~0.4.1`

@@ -47,3 +47,3 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

To keep or remove special comments, exposing the underlying option from [clean-css](https://github.com/GoalSmashers/clean-css).. `'*'` for keeping all (default), `1` for keeping first one, `0` for removing all.
To keep or remove special comments, exposing the underlying option from [clean-css](https://github.com/GoalSmashers/clean-css). `'*'` for keeping all (default), `1` for keeping first one, `0` for removing all.

@@ -109,2 +109,4 @@ #### report

* 2013-02-14   v0.8.0   update clean-css v2.1.0
* 2013-11-23   v0.7.0   update clean-css v2.0.0
* 2013-09-14   v0.6.2   Support relative URLs via clean-css ~1.1.1.

@@ -126,4 +128,4 @@ * 2013-05-25   v0.6.1   Support import in-lining vis clean-css ~1.0.4.

Task submitted by [Tim Branyen](http://goingslowly.com/)
Task submitted by [Tim Branyen](http://tbranyen.com/)
*This file was generated on Sat Oct 05 2013 19:35:29.*
*This file was generated on Mon Feb 17 2014 14:49:35.*

@@ -15,2 +15,3 @@ /*

var CleanCSS = require('clean-css');
var chalk = require('chalk');

@@ -31,5 +32,8 @@ grunt.registerMultiTask('cssmin', 'Minify CSS files', function() {

});
var max = valid
.map(grunt.file.read)
.join(grunt.util.normalizelf(grunt.util.linefeed));
var max;
if(options.report) {
max = valid
.map(grunt.file.read)
.join(grunt.util.normalizelf(grunt.util.linefeed));
}
var min = valid.map(function(f) {

@@ -48,3 +52,3 @@ options.relativeTo = path.dirname(f);

grunt.file.write(f.dest, min);
grunt.log.writeln('File ' + f.dest + ' created.');
grunt.log.writeln('File ' + chalk.cyan(f.dest) + ' created.');
if(options.report) {

@@ -59,3 +63,3 @@ helper.minMaxInfo(min, max, options.report);

try {
return new CleanCSS(options).minify(source)
return new CleanCSS(options).minify(source);
} catch (e) {

@@ -62,0 +66,0 @@ grunt.log.error(e);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc