X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/fac54389550aaab8bcb4ad1e6b0b1900fd8887d2..f91c2b4feb85933bc190712b45788d2f24fe851d:/lib/generators/static.js?ds=sidebyside diff --git a/lib/generators/static.js b/lib/generators/static.js index a0856a3..4713ea7 100644 --- a/lib/generators/static.js +++ b/lib/generators/static.js @@ -25,7 +25,7 @@ module.exports = async function StaticGenerator(source, target, posts) { const assetsTarget = join(target, internals.kAssetsDirectoryName); internals.debuglog(`Removing ${assetsTarget}`); - await rm(assetsTarget, { recursive: true }); + await rm(assetsTarget, { recursive: true, force: true }); for (let i = 0; i < posts.length; ++i) { const postSourcePath = join(source, `${i}`);