Sha256: f0e2e81155efd4f79b57c1a5abe6d6053b32912e6110221675972d4ab376b65e

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

<%#= javascript_importmap_tags "application_panda_cms" %>
<script type="importmap" data-turbo-track="reload">
  <%=
    # This ended up being the best solution to not drag in the importmap from the host app when we're editing the site
    JSON.pretty_generate({
      imports: {
        "application_panda_cms": asset_path("panda_cms/application_panda_cms.js"),
        "@hotwired/turbo": asset_path("panda_cms/@hotwired--turbo.js"),
        "@hotwired/stimulus": asset_path("panda_cms/@hotwired--stimulus.js"),
        "@hotwired/stimulus-loading": asset_path("stimulus-loading.js"),
        "tailwindcss-stimulus-components": asset_path("panda_cms/tailwindcss-stimulus-components.js"),
        "controllers/dashboard_controller": asset_path("panda_cms/controllers/dashboard_controller.js"),
        "controllers/slug_controller": asset_path("panda_cms/controllers/slug_controller.js"),
        # Add other controllers here
        "controllers": asset_path("panda_cms/controllers/index.js")
      }
    }).html_safe
  %>
</script>
<script type="module">
  import "application_panda_cms"
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panda_cms-0.6.0 app/views/panda_cms/shared/_importmap.html.erb