nomadro/apps/miniprogram/weapp/scripts/_dump-css.cjs
Eric 4389ebe6cb Ship WeChat audit release 2026-11-02: realtime config, audit vip-ebook shell, admin ops.
Document test9 tag 2026-11-02 for upload; POST config pull + WS, fixed dark home, no debug bar.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-02 16:12:57 +08:00

30 lines
688 B
JavaScript

const fs = require('fs')
const s = fs.readFileSync(
require('path').join(__dirname, '../dist/pages/social/sub-vendors.wxss'),
'utf8',
)
function dumpAround(needle, pad = 300) {
let from = 0
let n = 0
while (n < 4) {
const i = s.indexOf(needle, from)
if (i < 0) break
console.log('\n====', needle, '@', i, '====')
console.log(s.slice(i, i + pad))
from = i + needle.length
n += 1
}
}
;[
'.connection-ways{',
'.connection-way{',
'.social-home .connection-ways{',
'.social-home .connection-copy, .social-home .connection-universe{',
'.footer-grid{',
'.footer-links{',
'opacity: 0',
'connection-rise',
].forEach((n) => dumpAround(n, 280))