Answer the question
In order to leave comments, you need to log in
Convenient LESS-file compiler to CSS code?
The essence of my question is expanded by the fact that I write on SublimeText-2. Used LESS to CSS compiler from git://github.com/berfarah/LESS-sublime-build.git repository a couple of months ago. Everything was like in a fairy tale. But I could not constantly use it due to being busy on the main project. But today I decided to introduce LESS into the main development process. However, the compiler complains about even the smallest files...
LESS:
//
// Grid system
// --------------------------------------------------
// Fixed (940px)
#grid > .core(@gridColumnWidth, @gridGutterWidth);
// Fluid (940px)
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);
// Reset utility classes due to specificity
[class*="span"].hide,
.row-fluid [class*="span"].hide {
display: none;
}
[class*="span"].pull-right,
.row-fluid [class*="span"].pull-right {
float: right;
}
Answer the question
In order to leave comments, you need to log in
You don't have @gridColumnWidth, @gridGutterWidth variables defined, of
course, the grid is built on variables, and if there is no input, there is nothing to build .
you just had to define them in the header of the loess, for example like this:
@gridColumnWidth: 60px;
@gridGutterWidth: 20px;
I build less on the client side during development. And only after the project is launched, I already compile it into css and include
I would like to add to the question, what is the most convenient way to compile if I work in JetBrains PHP/WebStorm?
Available in pure PHP - leafo.net/lessphp/
Bootstrap compiles with a bang. Work from the command line is also provided
Tried lessphp
Bootstrap compiled without errors BUT
With Winless the compiled file is (compessed) 157 kilobytes and lessphp is also (compessed) 236 kilobytes. The difference is significant.
I don't understand anything. All in one line, ANSI encoding. WINLESS rules groups?
It's hard to check in one line.
I once wrote a solution for myself for recursively building less into one file. Fast
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question