Skip to content

Import bootstrap js components #313

@dallasbeek

Description

@dallasbeek

Looking to compile in the required bootstrap js components into the scripts but not having luck. I want ScrollSpy (only component I intend to use)

import {ScrollSpy} from 'bootstrap' // probably in script.js

remove from index.pug
script(src='https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js')

Got any suggestions on how that can be done? Do I need to replace fs in render-scripts? Any advice appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions