diff --git a/scripts/mergeLessPlugin.js b/scripts/mergeLessPlugin.js index 4b3034b32064a4f39443aa5a606c2218b443d418..2a7accdc7fd4f0f2231ddb1fdd3b97f754d340a6 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'));