Bootstrap 5 custom has duplicate script tags

I’m using a custom CSS downloaded from Bootswatch. The only template specific file here is the bootstrap.min.css itself.

Isn’t “Bootstrap 5 custom” the appropriate option here? Please note I cannot use your built-in Bootswatch themes because of another bug, hence I’m manually downloading and overriding the bootstrap.min.css located in the public/bootstrap/5 folder.

Assuming a Blank project, I go to project settings and select Bootstrap 5 custom, with the default JS/CSS locations and then I override the bootstrap.min.css with the one I downloaded from Bootswatch.

I then have two options:

  • I go to main.ejs and select Bootstrap 5 custom, which leads to that weird revert to Bootstrap 5 local and “duplicate” script tags
  • Or I go to index.ejs and select Bootstrap 5 custom, leaving main.ejs untouched regarding the Bootstrap framework

What’s the correct approach?