/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tooling/decode-debug-hash.js
12 строк
268 B
Alexander Akait
refactor: use `eslint-config-webpack` (#19645)
02 июл 2025, 15:10
Не верифицирован
02 июл 2025, 15:10
02a1d22
Код
Авторство
О чём код?
"use strict"; const fs = require("fs"); const file = process.argv[2]; let content = fs.readFileSync(file, "utf8"); content = content.replace(/debug-digest-([a-f0-9]+)/g, (match, bin) => Buffer.from(bin, "hex").toString("utf8") ); fs.writeFileSync(file, content);