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.1.3 to 2.2.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# 2.2.0 (12/08/2016)
- remove vinyl-sourcemaps-apply in favor of clean-css sourcemap engine
- bug fix #1 => https://github.com/scniro/gulp-clean-css/issues/1
- bug fix #7 => https://github.com/scniro/gulp-clean-css/issues/7
- bug fix #9 => https://github.com/scniro/gulp-clean-css/issues/9
# 2.1.3 (12/07/2016)

@@ -2,0 +9,0 @@

18

index.js

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

const applySourceMap = require('vinyl-sourcemaps-apply');
const CleanCSS = require('clean-css');

@@ -30,10 +29,4 @@ const objectAssign = require('object-assign');

var cssFile;
var style = file.contents ? file.contents.toString() : '';
//if (file.path) {
// cssFile = {};
// cssFile[file.path] = {styles: style};
//}
new CleanCSS(fileOptions).minify(style, function (errors, css) {

@@ -44,13 +37,2 @@

if (css.sourceMap) {
var map = JSON.parse(css.sourceMap);
map.file = path.relative(file.base, file.path);
map.sources = map.sources.map(function (src) {
return path.relative(file.base, src);
});
applySourceMap(file, map);
}
if (typeof callback === 'function') {

@@ -57,0 +39,0 @@ var details = {

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

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

@@ -36,4 +36,3 @@ "license": "MIT",

"object-assign": "^4.1.0",
"through2": "^2.0.3",
"vinyl-sourcemaps-apply": "^0.2.1"
"through2": "^2.0.3"
},

@@ -40,0 +39,0 @@ "devDependencies": {

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