startbootstrap-bare icon indicating copy to clipboard operation
startbootstrap-bare copied to clipboard

Importing Bootstrap JS

Open Mecanik opened this issue 4 years ago • 1 comments

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 avatar Nov 12 '21 09:11 Mecanik

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);
});

Mecanik avatar Nov 12 '21 09:11 Mecanik