瀏覽代碼

chore: add log

代强 2 年之前
父節點
當前提交
9cf2272581
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gatsby-node.js

+ 5 - 0
gatsby-node.js

@@ -321,9 +321,14 @@ exports.onPostBuild = async () => {
         }
     }
 
+    console.log("Num json set ", Array.from(replacedNameSet));
+
     //only match nav json (only number)
     const jsonFiles = glob.sync(`${publicPath}/**/*.{js,html,json}`);
     for (let file of jsonFiles) {
+        if (file.includes("public/editor")){
+            continue;
+        }
         const stats = fs.statSync(file);
         if (stats.isFile()) {
             console.log("Notice: Add Hash to JSON File "+ file);