Skip to content

Commit

Permalink
mkdir改成同步方法
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyun122 authored and chenshuai2144 committed Jul 11, 2018
1 parent 81774c2 commit aa50ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mergeLessPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit aa50ab4

Please sign in to comment.