elm-hot
Version:
Hot code swapping for Elm
22 lines (21 loc) • 573 B
HTML
<html>
<head>
<meta charset="UTF-8">
<title>Main</title>
<script type="text/javascript" src="client.js"></script>
<script type="text/javascript" src="build/BrowserDocumentCounter.js"></script>
</head>
<body>
<div id="ignored"></div>
<script>
connect("BrowserDocumentCounter");
Elm.BrowserDocumentCounter.init({
node: "ignored", // this should be ignored by HMR: see https://github.com/klazuka/elm-hot/issues/14
flags: {
n: 0
}
});
</script>
</body>
</html>