R
R
Ramil2015-07-12 21:40:25
Bootstrap
Ramil, 2015-07-12 21:40:25

How to properly connect bootstrap3 after installing bower?

I installed bootstrap in my project with bower.
My folder structure is something like this. bbff4dd476b24349b6f1625e8d84767c.png
Only instead of sass I have less files. And bootstrap has less. I want to import to be able to override the variables from the bootstrap in my variables. Of course, you can edit all the variables directly in the bower_components folder, but this loses the whole point in bower. How can I create a file with bootstrap variables so that my changes won't be lost when I do a bower update?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2015-07-12
@vafarulez

in your file

@improt "my_bootstrap_variables.less"; // это копия файла с переменными из бутстрапа. лежит в вашей папке src. 
@improt "../../bower_components/bootstrap<...>/bootstrap.less";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question