Including Bootstrap to Crossrider project

40 views Asked by At

I'm working on Crossrider project, which should be styled as bootstrap(both js and css).
I tried to include them as other js files inside extension.js, but instead of styling popover, current site was styled.
At the moment I'm using standard <link> and <script> tags inside popover.html.

What is the best way to attach those files to project?

1

There are 1 answers

2
Shlomo On

There isn't a lot to go on here, but from the description provided it seems you are injecting the bootstrap components into the page scope and hence experiencing conflicts with sites using bootstrap. I suggest you make your bootstrap classes unique to avoid this issue. I found the following site which might help you get started: https://formden.com/blog/isolate-bootstrap

[Disclosure: I am a Crossrider employee]