Jacob
1 天以前 6a0a2c52a4ea8049909b8d7a40d0c2d098b5e74c
scripts/manifest.js
....@@ -95,7 +95,8 @@
9595
9696 if (exists) {
9797 const prev = fs.readFileSync(TARGET, 'utf8');
98
- if (prev === rendered) {
98
+ // 行尾差异(CRLF/LF)不算变化,避免无意义重写
99
+ if (prev.replace(/\r\n/g, '\n') === rendered.replace(/\r\n/g, '\n')) {
99100 console.log('[manifest] manifest.json 已是目标内容,无需重写');
100101 return { file: TARGET, changed: false };
101102 }