aboutsummaryrefslogtreecommitdiffstats
path: root/examples/index.js
blob: c1efd552661aa2ed018ef57729096fdd62e35ed0 (plain)
1
2
3
4
5
6
7
8
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);