fis3-hook-lego
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -7,3 +7,3 @@ /** | ||
var lookup = require('./lookup'); | ||
var powerLego = require('./powerLego'); | ||
var entry = module.exports = function(fis, opts) { | ||
@@ -18,2 +18,9 @@ fis.on('lookup:file', function(info, file) { | ||
} | ||
} else if (opts.powerLego && info.rest && powerLego.reg.test(info.rest) && !info.id) { | ||
// 处理inline和样式 | ||
var ret = powerLego.lookup(info.rest, opts); | ||
if (ret && ret.file) { | ||
info.id = ret.file.getId(); | ||
info.file = ret.file; | ||
} | ||
} | ||
@@ -20,0 +27,0 @@ }); |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "fis3-hook-lego", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "lego 包管理模块查找", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ # fis3-hook-lego |
Sorry, the diff of this file is not supported yet
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
11522
6
233
2