Last active
September 4, 2019 09:22
-
-
Save JakeGinnivan/58821a7c14b533745d7dfc86e992d296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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