From a3025ee2dd0f9c5ac9b54d98c96dc45e0f144d49 Mon Sep 17 00:00:00 2001 From: wxzhang Date: Tue, 22 Feb 2022 17:52:43 +0800 Subject: [PATCH] update --- src/extract.plugin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extract.plugin.js b/src/extract.plugin.js index a7f9044..ee22710 100644 --- a/src/extract.plugin.js +++ b/src/extract.plugin.js @@ -83,6 +83,7 @@ module.exports = function(options={}){ let results = {} // file == vinyl实例 return through2.obj(function(file, encoding, callback){ + // 如果没有指定输出路径,则默认输出到<原文件夹/languages> if(!outputPath){ outputPath = path.join(file.base,"languages") } @@ -106,5 +107,6 @@ module.exports = function(options={}){ },function(callback){ console.log("输出路径:",outputPath) console.log(JSON.stringify(results,null,2)) + }); } \ No newline at end of file