josefarias / hotwire_combobox

An accessible autocomplete for Ruby on Rails.
https://hotwirecombobox.com
MIT License
496 stars 32 forks source link

Support JS bundling pipelines #68

Closed josefarias closed 7 months ago

josefarias commented 7 months ago

Ref. https://github.com/josefarias/hotwire_combobox/issues/10

We'll publish the bundled JS to npm.

Once the JS is installed, the stimulus controller can be registered as follows:

import { Application } from "@hotwired/stimulus"
import HwComboboxController from "@josefarias/hotwire_combobox"

const application = Application.start()

application.register("hw-combobox", HwComboboxController)