tinypng-free icon indicating copy to clipboard operation
tinypng-free copied to clipboard

sign.json不起作用,两次运行同一个命令,没有对比sign.json中的内容,已经压缩过的,还是会再次压缩一遍

Open bibichuan opened this issue 4 years ago • 2 comments

bibichuan avatar Dec 19 '20 12:12 bibichuan

if (data) { tinyFile.contents = data; hasher.update(file, hasher.calc(file)); } 这里应该改成这样,判断压缩前的md5,存入sign.json文件

bibichuan avatar Dec 21 '20 09:12 bibichuan

在压缩文件夹和源文件夹不是同一个文件的情况下会出现这个问题

bibichuan avatar Dec 22 '20 01:12 bibichuan