Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing Bootstrap JS #53

Open
Mecanik opened this issue Nov 12, 2021 · 1 comment
Open

Importing Bootstrap JS #53

Mecanik opened this issue Nov 12, 2021 · 1 comment

Comments

@Mecanik
Copy link

Mecanik commented Nov 12, 2021

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
Copy link
Author

Mecanik commented Nov 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant