Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-clean-css

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-clean-css - npm Package Compare versions

Comparing version 2.3.2 to 2.4.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 2.4.0 (02/05/2017)
- upgrade to clean-css 4.x
- devdep updates
# 2.3.1 (12/17/2016)

@@ -2,0 +7,0 @@

9

index.js

@@ -25,13 +25,8 @@ const applySourceMap = require('vinyl-sourcemaps-apply');

var fileOptions = objectAssign({target: file.path}, options);
if (!fileOptions.relativeTo && file.path)
fileOptions.relativeTo = path.dirname(path.resolve(file.path));
if (file.sourceMap)
fileOptions.sourceMap = JSON.parse(JSON.stringify(file.sourceMap));
options.sourceMap = JSON.parse(JSON.stringify(file.sourceMap));
var style = file.contents ? file.contents.toString() : '';
new CleanCSS(fileOptions).minify(style, function (errors, css) {
new CleanCSS(options).minify(style, function (errors, css) {

@@ -38,0 +33,0 @@ if (errors)

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/scniro/gulp-clean-css#readme",
"version": "2.3.2",
"version": "2.4.0",
"author": "scniro",

@@ -33,5 +33,5 @@ "license": "MIT",

"dependencies": {
"clean-css": "^3.4.23",
"gulp-util": "^3.0.7",
"object-assign": "^4.1.0",
"clean-css": "^4.0.4",
"gulp-util": "^3.0.8",
"object-assign": "^4.1.1",
"through2": "^2.0.3",

@@ -42,5 +42,6 @@ "vinyl-sourcemaps-apply": "^0.2.1"

"chai": "^3.5.0",
"coveralls": "^2.11.15",
"chai-string": "^1.3.0",
"coveralls": "^2.11.16",
"del": "^2.2.2",
"express": "^4.14.0",
"express": "^4.14.1",
"gulp": "^3.9.1",

@@ -51,4 +52,4 @@ "gulp-concat": "^2.6.1",

"gulp-rename": "^1.2.2",
"gulp-sass": "^3.0.0",
"gulp-sourcemaps": "^1.9.1",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.4.1",
"mocha": "^3.2.0",

@@ -55,0 +56,0 @@ "vinyl": "^2.0.1",

@@ -73,3 +73,2 @@ # gulp-clean-css

.pipe(gulp.dest('dist'));
});
});

@@ -76,0 +75,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc