clean-css
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -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 @@ ================== |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36746
496