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

clean-css

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-css - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

5

History.md

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

1.0.10 / 2013-06-13
==================
* Fixed issue [#114](https://github.com/GoalSmashers/clean-css/issues/114) - comments in imported stylesheets.
1.0.9 / 2013-06-11

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

15

lib/clean.js

@@ -77,9 +77,12 @@ /**

var removeComments = function() {
replace(function stripComments() {
data = CleanCSS._stripComments(context, data);
});
};
// replace all escaped line breaks
replace(/\\(\r\n|\n)/mg, '');
// strip comments one by one
replace(function stripComments() {
data = CleanCSS._stripComments(context, data);
});
removeComments();

@@ -94,2 +97,6 @@ // inline all imports

// strip comments with inlined imports
if (data.indexOf('/*') > -1)
removeComments();
// strip parentheses in urls if possible (no spaces inside)

@@ -96,0 +103,0 @@ replace(/url\((['"])([^\)]+)['"]\)/g, function(match, quote, url) {

{
"name": "clean-css",
"version": "1.0.9",
"version": "1.0.10",
"author": "Jakub Pawlowicz <jakub@goalsmashers.com> (http://twitter.com/GoalSmashers)",

@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier",

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