If I add a bootstrap component (like a popover) that needs the bootstrap js, I get an error in the page when served:
"Could not load content for http://localhost:8080/src/_assets/js/_bootstrap.js"
I don't know parcel, but I noticed the parcel.js file has several references to "/src/_assets/js/..." which seems odd since the final webpage doesn't know anything about the src directory in the 11ty project.
To make a minimal example to reproduce, add this code just after the
tag in base.njk:
<button type="button" class="btn btn-lg btn-danger" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
View the generated index.html in the local server, and you should see that error (and the popover won't work).
If I add a bootstrap component (like a popover) that needs the bootstrap js, I get an error in the page when served:
"Could not load content for http://localhost:8080/src/_assets/js/_bootstrap.js"
I don't know parcel, but I noticed the parcel.js file has several references to "/src/_assets/js/..." which seems odd since the final webpage doesn't know anything about the src directory in the 11ty project.
To make a minimal example to reproduce, add this code just after the
tag in base.njk:<button type="button" class="btn btn-lg btn-danger" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
View the generated index.html in the local server, and you should see that error (and the popover won't work).