eager-tiger-27508
02/07/2022, 3:32 PMeager-tiger-27508
02/07/2022, 3:33 PMbland-coat-6833
02/07/2022, 3:34 PMbland-coat-6833
02/07/2022, 3:35 PMindex or layout template with your navbar, then put some {% block content %} tags in and override them in your child templates.prehistoric-camera-13489
02/07/2022, 3:50 PM<link rel="import" href="/path/to/imports/stuff.html"> ?bland-coat-6833
02/07/2022, 3:53 PMprehistoric-camera-13489
02/07/2022, 3:54 PMnarrow-room-51024
02/07/2022, 5:40 PMnarrow-room-51024
02/07/2022, 5:40 PMmysterious-toddler-20573
02/07/2022, 5:40 PMnarrow-room-51024
02/07/2022, 5:41 PMgentle-notebook-11755
02/07/2022, 7:15 PMwindow._ = require ("../npm_webpack/node_modules/hyperscript.org");
window.htmx = require ("../npm_webpack/node_modules/htmx.org");
After bundling, Hyperscript seems to be working as usual. But now I lost the HTMX functionality in all my navigation links but one. There aren't any errors on the console. I'm not sure why it only works on a single link now, and not sure how to start troubleshooting this either since I'm really bad with Webpack.
If anyone has a different bundling approach, can you share?narrow-room-51024
02/07/2022, 7:29 PMnode_modules/htmx.org/dist/htmx.min.js to my public folder during the build, then I serve the file using my CDN... Then I just include the file using a regular <script> tag on the template that needs it.gentle-notebook-11755
02/07/2022, 7:51 PMstocky-dentist-80693
02/07/2022, 7:58 PMimport htmx from 'htmx.org/dist/htmx.js';
window.htmx = htmx;
import _hyperscript from 'hyperscript.org';
That's what I'm using in a current project. Versions: htmx 1.6.1 and hyperscript 0.9.0gentle-notebook-11755
02/07/2022, 8:05 PMgentle-notebook-11755
02/07/2022, 8:07 PMstocky-dentist-80693
02/07/2022, 8:07 PMstocky-dentist-80693
02/07/2022, 8:10 PMgentle-notebook-11755
02/07/2022, 8:11 PMgentle-notebook-11755
02/07/2022, 8:12 PMhx-boost="true"
hx-push-url = "true"
hx-select = ".site-main"
hx-target = ".site-main"
hx-swap = "outerHTML swap:0ms settle:100ms show:unset"
hx-indicator ="#loader"gentle-notebook-11755
02/07/2022, 8:14 PMgentle-notebook-11755
02/07/2022, 8:45 PM1.6.1 to 1.6.0, then all things work as expected on my WebPack export.stocky-dentist-80693
02/07/2022, 8:47 PMgentle-notebook-11755
02/07/2022, 8:50 PMgifted-airline-5816
02/07/2022, 8:53 PMgifted-airline-5816
02/07/2022, 9:13 PMstocky-dentist-80693
02/07/2022, 9:19 PM