from pathlib import Path
index = Path("dist-public/index.html")
banner = Path(__file__).with_name("preview-banner.html").read_text()
html = index.read_text()
assert html.count('<div id="root"></div>') == 1
index.write_text(html.replace('<div id="root"></div>', banner + '<div id="root"></div>'))
