Browse Source

bugfix: Determine if temp exists

pull/1774/head
陈帅 8 years ago
parent
commit
cb85fd1867
  1. 2
      scripts/mergeLessPlugin.js

2
scripts/mergeLessPlugin.js

@ -59,7 +59,7 @@ class mergeLessPlugin {
// covert less // covert less
if (fs.existsSync(outFile)) { if (fs.existsSync(outFile)) {
fs.unlinkSync(outFile); fs.unlinkSync(outFile);
} else { } else if (!fs.existsSync(path.dirname(outFile))) {
fs.mkdirSync(path.dirname(outFile)); fs.mkdirSync(path.dirname(outFile));
} }
loopAllLess(options.stylesDir).then(() => { loopAllLess(options.stylesDir).then(() => {

Loading…
Cancel
Save