Skip to content

Importing Bootstrap JS #53

Open
Open

Description

@Mecanik

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

Activity

  1. Mecanik commented on Nov 12, 2021

    @Mecanik
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions