mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 07:43:01 +00:00
such a stupid bug
This commit is contained in:
parent
259b332883
commit
460aed4f3b
2 changed files with 2 additions and 1 deletions
|
@ -138,6 +138,6 @@ module.exports = function(eleventyConfig) {
|
||||||
eleventyConfig.addPairedShortcode("gallerybox", shortcode_gallerybox);
|
eleventyConfig.addPairedShortcode("gallerybox", shortcode_gallerybox);
|
||||||
|
|
||||||
eleventyConfig.addPassthroughCopy({
|
eleventyConfig.addPassthroughCopy({
|
||||||
"node_modules/keen-slider/keen-slider.es.js": "."
|
"node_modules/keen-slider/keen-slider.es.js": "./keen-slider.es.js"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,6 +118,7 @@ async function picture(source_image, alt, target_dir, urlpath, formats = "__AUTO
|
||||||
}
|
}
|
||||||
|
|
||||||
const target_original = path.join(target_dir, source_parsed.base);
|
const target_original = path.join(target_dir, source_parsed.base);
|
||||||
|
console.error(`DEBUG:target_original`, target_original, `DIRNAME`, path.dirname(target_original));
|
||||||
if (!fs.existsSync(path.dirname(target_original)))
|
if (!fs.existsSync(path.dirname(target_original)))
|
||||||
await fs.promises.mkdir(path.dirname(target_original), { recursive: true });
|
await fs.promises.mkdir(path.dirname(target_original), { recursive: true });
|
||||||
await fs.promises.copyFile(source_image, target_original);
|
await fs.promises.copyFile(source_image, target_original);
|
||||||
|
|
Loading…
Reference in a new issue