diff --git a/assets/app.js b/assets/app.js index e56396c..3cb7ffc 100644 --- a/assets/app.js +++ b/assets/app.js @@ -1,10 +1,25 @@ import './stimulus_bootstrap.js'; -/* - * Welcome to your app's main JavaScript file! - * - * This file will be included onto the page via the importmap() Twig function, - * which should already be in your base.html.twig. - */ import './styles/app.css'; -console.log('This log comes from assets/app.js - welcome to AssetMapper! 🎉'); +import htmx from 'htmx.org'; + +// Exposed so inline `hx-on:` handlers and Stimulus controllers can reach htmx. +window.htmx = htmx; + +// We never return