diff options
Diffstat (limited to 'examples/index.js')
-rw-r--r-- | examples/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js new file mode 100644 index 0000000..c1efd55 --- /dev/null +++ b/examples/index.js @@ -0,0 +1,9 @@ +import { registerCustomElement, registerPorts } from "elm-mapbox"; +import "mapbox-gl/dist/mapbox-gl.css"; +import { Elm } from "./Example02.elm"; + +const token = process.env.MAPBOX_TOKEN; + +registerCustomElement({token}); +var app = Elm.Example02.init({node: document.body}); +// registerPorts(app); |