Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smallfawn authored Jun 28, 2024
1 parent 8485160 commit 3d0324d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ for (let plugin of plugins) {
continue;
}
}

let time = new Date().getTime();
if (processedCode !== sourceCode) {
// 输出代码
fs.writeFile(decodeFile, processedCode, (err) => {
fs.writeFile(decodeFile, "//" + time + '\n' + processedCode, (err) => {
if (err) throw err;
console.log(`使用插件 ${pluginUsed} 成功处理并写入文件 ${decodeFile}`);
});
Expand Down

0 comments on commit 3d0324d

Please sign in to comment.