FR-Data-Analysis / scripts /normalize-dist.mjs
ashish
deploy: prebuild static Space assets locally
d248066
Raw History Blame Contribute Delete
236 Bytes
import { readFile, writeFile } from 'node:fs/promises';
const indexPath = new URL('../dist/index.html', import.meta.url);
const html = await readFile(indexPath, 'utf8');
await writeFile(indexPath, html.replace(/\r\n?/g, '\n'), 'utf8');