Commit aa50ab40 authored by wangyun's avatar wangyun Committed by 陈帅

mkdir改成同步方法

parent 81774c23
...@@ -60,7 +60,7 @@ class mergeLessPlugin { ...@@ -60,7 +60,7 @@ class mergeLessPlugin {
if (fs.existsSync(outFile)) { if (fs.existsSync(outFile)) {
fs.unlinkSync(outFile); fs.unlinkSync(outFile);
} else { } else {
fs.mkdir(path.dirname(outFile)); fs.mkdirSync(path.dirname(outFile));
} }
loopAllLess(options.stylesDir).then(() => { loopAllLess(options.stylesDir).then(() => {
fs.writeFileSync(outFile, lessArray.join('\n')); fs.writeFileSync(outFile, lessArray.join('\n'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment