import htmx from 'htmx.org' htmx.config.includeIndicatorStyles = false htmx.config.historyCacheSize = 0 htmx.config.allowScriptTags = false // A boosted link is a page navigation: show the error page like the browser would, instead of // swallowing the 4xx/5xx and leaving the click without effect. document.addEventListener('htmx:beforeSwap', (event) => { if (true === event.detail.boosted && event.detail.xhr.status >= 400) { event.detail.shouldSwap = true event.detail.isError = false } }) import './bootstrap.js'; /* * Welcome to your app's main JavaScript file! * * We recommend including the built version of this JavaScript file * (and its CSS file) in your base layout (base.html.twig). */ // any CSS you import will output into a single css file (app.css in this case) import './styles/app.css';