0

I'm building a application using Aurelia and the Aurelia cli. Using the workaround described here I'm able to copy the fonts from bootstrap to the correct location (/bootstrap/fonts) and it works as expected when loading the root of the site. The paths in bootstrap.css will however all be relative (bootstrap/fonts) which means that when I load any other url, lets say "/products", the fonts will be loaded from "/products/bootstrap/fonts" where they obviously wont be found. Is there any way I can change the urls in bootstrap.css when building with the Aurelia cli? I would just like to add "/" in front of any url.

Mattias Jakobsson
  • 8,207
  • 2
  • 34
  • 41

1 Answers1

1

You need to add bootstrap resources (css and fonts) manually to index.html file and add new build stage to build.js file instead of aurelia.json config file.

You can find code example for font-awesome here (bootstrap files will be have the same code).

Community
  • 1
  • 1
JayDi
  • 1,037
  • 15
  • 24