Browse Source

mkdir改成同步方法

pull/1774/head
wangyun 8 years ago
committed by 陈帅
parent
commit
aa50ab4074
  1. 2
      scripts/mergeLessPlugin.js

2
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'));

Loading…
Cancel
Save