mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-03 20:43:50 +01:00
such a stupid bug
This commit is contained in:
parent
259b332883
commit
460aed4f3b
@ -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 New Issue
Block a user