|
@@ -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(() => {
|