Created
April 14, 2017 00:39
-
-
Save lion19/c383fcb313540cf6b81014932b24c8e9 to your computer and use it in GitHub Desktop.
custom webapp.html for a web build
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Razor</title> | |
<script> | |
(function() { | |
const link = document.createElement('link'); | |
link.rel = 'stylesheet'; | |
link.href = './style.css'; | |
// HACK: Writing the script path should be done with webpack | |
document.getElementsByTagName('head')[0].appendChild(link); | |
}()); | |
</script> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script> | |
{ | |
const script = document.createElement('script'); | |
const port = 8080; | |
script.src = './bundle.js'; | |
// HACK: Writing the script path should be done with webpack | |
document.body.appendChild(script); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment