const fs = require('node:fs'); const YandexMetrika = ` `; const GoogleAnalytics = ` `; const html = fs.readFileSync('../build/index.html', 'utf8'); const text = html .replace(/<\/body>/gim, `\n${YandexMetrika}\n${GoogleAnalytics}\n