From aa50ab4074b78b23c0aa6d79e81e9b9149600f9c Mon Sep 17 00:00:00 2001 From: wangyun Date: Thu, 5 Jul 2018 19:19:53 +0800 Subject: [PATCH] =?UTF-8?q?mkdir=E6=94=B9=E6=88=90=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/mergeLessPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mergeLessPlugin.js b/scripts/mergeLessPlugin.js index 4b3034b3..2a7accdc 100755 --- a/scripts/mergeLessPlugin.js +++ b/scripts/mergeLessPlugin.js @@ -60,7 +60,7 @@ class mergeLessPlugin { if (fs.existsSync(outFile)) { fs.unlinkSync(outFile); } else { - fs.mkdir(path.dirname(outFile)); + fs.mkdirSync(path.dirname(outFile)); } loopAllLess(options.stylesDir).then(() => { fs.writeFileSync(outFile, lessArray.join('\n')); -- GitLab