W
W
Web_Questions2015-09-24 20:38:26
Less
Web_Questions, 2015-09-24 20:38:26

Working with bootstrap at less level which approach is correct?

I came across an article
habrahabr.ru/post/211032
where we simply override the bootstrap styles with our own, I thought it might be better to edit the sources?
If I think correctly, then tell me, should I compile all less bootstrap files into one file like bootstrap.min.css ?
how do you work with bootstrap at the less level
, I'm just learning, I will be grateful for competent advice

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kim, 2015-09-24
@kimono

By editing the sources, you lose the ability to move from version to version, for example, from 3.0 to 3.1. And if you just rewrite classes, then take down the old folder and insert a new one. And your theme remains the same.
In general, take bootstrap sorts, namely all less files, put a file next to it, where you reassign all variable values, and then compile them into css. I use winless for example.

D
Denis Ineshin, 2015-09-24
@IonDen

To build LESS/SASS into a single file, use a build system like Gulp or Grunt .
It is not recommended to edit project sources. Remember that this is a framework, you use it as is, but at the same time add your plugins and features on top. This allows you to maintain a flexible project structure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question