Skip to content

Instantly share code, notes, and snippets.

@JakeGinnivan
Last active September 4, 2019 09:22
Show Gist options
  • Save JakeGinnivan/58821a7c14b533745d7dfc86e992d296 to your computer and use it in GitHub Desktop.
Save JakeGinnivan/58821a7c14b533745d7dfc86e992d296 to your computer and use it in GitHub Desktop.
import assets from '../assets.json'
function renderHtml(renderedMarkup: string) {
return `<!DOCTYPE html>
<html>
<head>
<link id="css-main" type="text/css" rel="stylesheet" href="${assets.main
.css}">
</head>
<body>
<div id="root">${renderedMarkup}</div>
<script src="${assets.vendor.js}"></script>
<script async src="${assets.main.js}"></script>
</body>
</html>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment