Browse Source

chore: add log

代强 3 years ago
parent
commit
9cf2272581
1 changed files with 5 additions and 0 deletions
  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);