Skip to content

Instantly share code, notes, and snippets.

@guzart
Created April 16, 2017 00:54
Show Gist options
  • Save guzart/07dfbdeec0414834bd5e9057ccd4c997 to your computer and use it in GitHub Desktop.
Save guzart/07dfbdeec0414834bd5e9057ccd4c997 to your computer and use it in GitHub Desktop.
Simple elm production builds
// src/index.js
const Elm = require('./Main.elm');
const mountNode = document.getElementById('root');
const app = Elm.Main.embed(mountNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment