Sha256: 9ab9e92124ef008c3a90299851bd786d9734fb247f98ade8eb5ac4bb466f2ffc

Contents?: true

Size: 558 Bytes

Versions: 29

Compression:

Stored size: 558 Bytes

Contents

/* eslint no-console: 0 */
// Run this example by adding <%= javascript_pack_tag 'hello_svelte' %> (and
// <%= stylesheet_pack_tag 'hello_svelte' %> if you have styles in your component)
// to the head of your layout file,
// like app/views/layouts/application.html.erb.
// All it does is render <div>Hello Svelte!</div> at the bottom of the page.

import App from '../app.svelte'

document.addEventListener('DOMContentLoaded', () => {
  const app = new App({
    target: document.body,
    props: {
      name: 'Svelte'
    }
  });

  window.app = app;
})

Version data entries

29 entries across 29 versions & 3 rubygems

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