Comparing version 1.1.2 to 1.1.3
@@ -7,2 +7,8 @@ # Change Log | ||
## 1.1.3 | ||
_2020-09-16_ | ||
- fix: Prevent linking to CSS files containing only CSS comments | ||
## 1.1.2 | ||
@@ -9,0 +15,0 @@ |
{ | ||
"name": "cssserve", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -280,3 +280,6 @@ #!/usr/bin/env node | ||
.filter(function (x) { return x; }); | ||
deps.hasCSS = cssSource.replace(match[0], '').trim().length > 0; | ||
deps.hasCSS = | ||
cssSource | ||
.replace(/\/\*.*?\*\//g, '') // Remove all comments, including @deps | ||
.trim().length > 0; | ||
return deps; | ||
@@ -283,0 +286,0 @@ } |
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
28513
537