Sha256: 318f3b4eb3c22b1e1c4cb4f21d70d5fd0d42d831fc015ed5f22b295ba5ea2d7e

Contents?: true

Size: 413 Bytes

Versions: 48

Compression:

Stored size: 413 Bytes

Contents

// Run this example by adding <%= javascript_pack_tag "hello_elm" %> to the
// head of your layout file, like app/views/layouts/application.html.erb.
// It will render "Hello Elm!" within the page.

import {
  Elm
} from '../Main'

document.addEventListener('DOMContentLoaded', () => {
  const target = document.createElement('div')

  document.body.appendChild(target)
  Elm.Main.init({
    node: target
  })
})

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/hello_elm.js
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/hello_elm.js
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/install/examples/elm/hello_elm.js
jetpacker-0.7.0 lib/install/examples/elm/hello_elm.js
webpacker-5.4.4 lib/install/examples/elm/hello_elm.js
jetpacker-0.6.0 lib/install/examples/elm/hello_elm.js
webpacker-5.4.3 lib/install/examples/elm/hello_elm.js
webpacker-5.4.2 lib/install/examples/elm/hello_elm.js
webpacker-5.4.1 lib/install/examples/elm/hello_elm.js
webpacker-5.4.0 lib/install/examples/elm/hello_elm.js
webpacker-5.3.0 lib/install/examples/elm/hello_elm.js
webpacker-5.2.2 lib/install/examples/elm/hello_elm.js
jetpacker-0.5.0 lib/install/examples/elm/hello_elm.js
webpacker-5.2.1 lib/install/examples/elm/hello_elm.js
webpacker-4.3.0 lib/install/examples/elm/hello_elm.js
webpacker-5.2.0 lib/install/examples/elm/hello_elm.js
webpacker-5.1.1 lib/install/examples/elm/hello_elm.js
webpacker-5.1.0 lib/install/examples/elm/hello_elm.js
webpacker-5.0.1 lib/install/examples/elm/hello_elm.js
webpacker-5.0.0 lib/install/examples/elm/hello_elm.js