Importing Bootstrap JS
Mecanik opened this issue · 1 comments
Mecanik commented
Hello,
Thanks for the awesome starter template. I would like to import Bootstrap JS instead of using it from the CDN.
All my attempts have failed, and I have realised that render-scripts.js needs to be edited to do this. Unfortunately, I have no idea even where to start.
Would it be possible to add support for this?
Many thanks
Mecanik commented
For reference, I would like to do this:
scripts.js:
import { Alert, Tooltip, Toast, Popover } from 'bootstrap';
var alertList = document.querySelectorAll('.alert');
alertList.forEach(function (alert) {
new Alert(alert);
});