Comparing version 0.7.6 to 0.7.7
var helper = require("../lib/util"); | ||
var minimatch = require("minimatch"); | ||
@@ -6,4 +7,5 @@ module.exports = function (absPath, reqOpt, param, cb) { | ||
var regxStr = "define\\(" + (param.ignore ? ('|' + param.ignore) : ''); | ||
if (new RegExp(regxStr).test(content) || !param.enable) { | ||
if (content === null || !param.enable || param.ignore.some(function (rule) { | ||
return minimatch(reqOpt.path.replace(/^\//, ''), rule); | ||
})) { | ||
cb({msg: "PASS Engine"}); | ||
@@ -10,0 +12,0 @@ } |
{ | ||
"name": "dac", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "Dynamic Assets Compiler", | ||
@@ -20,7 +20,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"clean-css": "~3.4.9", | ||
"clean-css": "~3.4.10", | ||
"iconv-lite": "~0.4.13", | ||
"is-utf8": "~0.2.1", | ||
"juicer": "~0.6.11", | ||
"less": "~2.6.0" | ||
"juicer": "~0.6.13", | ||
"less": "~2.6.1", | ||
"minimatch": "~3.0.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "author": "limingv5", |
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
11934
353
6
+ Addedminimatch@~3.0.0
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedminimatch@3.0.8(transitive)
Updatedclean-css@~3.4.10
Updatedjuicer@~0.6.13
Updatedless@~2.6.1