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

Import bootstrap js components #313

Open
dallasbeek opened this issue Oct 8, 2021 · 0 comments
Open

Import bootstrap js components #313

dallasbeek opened this issue Oct 8, 2021 · 0 comments

Comments

@dallasbeek
Copy link

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/[email protected]/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.

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