Skip to content

Commit

Permalink
允许设置资源查找时找不到不输出 warn
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jun 29, 2016
1 parent b8e6d30 commit af408ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ exports.getCachePath = function() {
* @memberOf fis.project
* @name lookup
*/
exports.lookup = function(path, file) {
exports.lookup = function(path, file, silent) {
var info = fis.uri(path, file ? file.dirname : exports.getProjectPath());

/**
Expand All @@ -257,7 +257,7 @@ exports.lookup = function(path, file) {
* @property {File} file 文件对象。
* @memberOf fis
*/
fis.emit('lookup:file', info, file);
fis.emit('lookup:file', info, file, silent);
if (!info.id) {
info.id = info.file ? info.file.id : info.rest;
}
Expand Down

0 comments on commit af408ef

Please sign in to comment.