Skip to content

Commit

Permalink
Add sample HTML for more detailed set up instructoin (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlienKevin authored Apr 29, 2020
1 parent 654fca4 commit 5210a0a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,27 @@ ElmDebugger.register();
// rest of application
```

Here's a sample HTML for your reference:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Elm App</title>
</head>
<body>
<main></main>
<script src="https://unpkg.com/elm-debug-transformer@latest/dist/elm-console-debug.js"></script>
<script>ElmConsoleDebug.register({simple_mode: false, debug: false, limit: 10000});</script>
<script src="elm.js"></script>
<script>
var app = Elm.Main.init({ node: document.querySelector('main') });
</script>
</body>
</html>
```

### Enable custom formatters in Chrome dev tools
Available in Chrome 47 and higher.

Expand Down

0 comments on commit 5210a0a

Please sign in to comment.