Answer the question
In order to leave comments, you need to log in
How to do formatted output in LESS like SASS?
How can you control the output format in LESS?
for example, in the source there is
.b-header {
overflow: hidden;
&__logo {
float: left;
}
&__menu {
float: right;
}
}
.b-header {
overflow: hidden;
}
.b-header__logo {
float: left;
}
.b-header__menu {
float: right;
}
Answer the question
In order to leave comments, you need to log in
My personal opinion: the output should be something like this:
And the source map is responsible for debugging
I have everything in one line (compression) ...
Beauty should be admired in less itself, and css should be optimized for users (that is, it weighs as little as possible)
By and large, the sorts should be readable, and not what the output is. In production, as noted above, the code must be compressed to speed up the download of the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question