update
This commit is contained in:
parent
eb6c3a292d
commit
a3025ee2dd
@ -83,6 +83,7 @@ module.exports = function(options={}){
|
|||||||
let results = {}
|
let results = {}
|
||||||
// file == vinyl实例
|
// file == vinyl实例
|
||||||
return through2.obj(function(file, encoding, callback){
|
return through2.obj(function(file, encoding, callback){
|
||||||
|
// 如果没有指定输出路径,则默认输出到<原文件夹/languages>
|
||||||
if(!outputPath){
|
if(!outputPath){
|
||||||
outputPath = path.join(file.base,"languages")
|
outputPath = path.join(file.base,"languages")
|
||||||
}
|
}
|
||||||
@ -106,5 +107,6 @@ module.exports = function(options={}){
|
|||||||
},function(callback){
|
},function(callback){
|
||||||
console.log("输出路径:",outputPath)
|
console.log("输出路径:",outputPath)
|
||||||
console.log(JSON.stringify(results,null,2))
|
console.log(JSON.stringify(results,null,2))
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user