cloudflare/InstantPlugin
Publicmirrored fromhttps://github.com/cloudflare/InstantPlugin
app/index.js
14lines · modecode
9 years ago
| 1 | import "./index.styl" |
| 2 | |
| 3 | import Application from "components/application" |
| 4 | import elementDatasetPolyfill from "element-dataset" |
| 5 | |
| 6 | document.addEventListener("DOMContentLoaded", () => { |
| 7 | elementDatasetPolyfill() |
| 8 | |
| 9 | const application = new Application(document.getElementById("app")) |
| 10 | |
| 11 | if (process.env.NODE_ENV !== "production") { |
| 12 | window.application = application |
| 13 | } |
| 14 | }) |