]> git.r.bdr.sh - rbdr/blog/blobdiff - lib/generators/static.js
Remove unnecessary logging
[rbdr/blog] / lib / generators / static.js
index a0856a37ad558eadf4bc74017822b1b7b8a0c681..4713ea7dca51c841fcd695d46c1a377c1643b714 100644 (file)
@@ -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}`);