1

What do you think is the best way to embed a bootstrap theme on VueJs? Assuming I do not want to use bootstrap-vue to not rewrite all the template? How and where to include the bootstrap.min.css file, as well as all font files that depend on it?

I init the project with vue-cli with wepack-simple template

Jonathan COHEN
  • 125
  • 1
  • 2
  • 8
  • Have you tried including `bootstrap.css` into you `index.html`? Why does that not work for you? You have said why you don't want to use bootstrap-vue, but I would expect you to say why one of the most common ways of including CSS into a document `` won't work. – zero298 Jun 19 '18 at 14:55
  • he has asked a valid question – Charles Okwuagwu Sep 14 '18 at 04:34

1 Answers1

0

Adding the Bootstrap CSS file like any other CSS file in the head of index.html should work (cf Bootstrap docs):

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">

No need to include the fonts, the CSS will get them.

Finrod
  • 2,425
  • 4
  • 28
  • 38