K
K
KennySP2014-11-09 11:03:26
css
KennySP, 2014-11-09 11:03:26

How to automatically compile LESS to readable CSS?

Greetings.
I use sublime text 2, installed the less2css plugin. I also installed LESS via node.js (I don't know much about it).
So, when I write LESS code in the editor, after each save, it is automatically compiled into a CSS file of the same name. But the problem is that the output CSS is one line. Is it possible to make it readable?
For example:
header {font-size: 1.5em; color: #000;}
or
header {
font-size: 1.5em;
color: #000;
}
Thank you in advance for your answers)
[update]
Heh, and the solution was so simple) prntscr.com/54k6az
You can switch in the plugin settings.
But I will learn assembly systems anyway, thanks for the advice)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2014-11-09
Protko @Fesor

There are optimization options in the less settings. I recommend you still use nodejs + gulp for development builds and incremental builds, simply because there you can definitely customize everything to your liking. And there are also sourcemaps.

A
Andrey Khokhlov, 2014-11-09
@andrhohlov

Use Grunt or Gulp.
I use Grunt: one task compiles less to css (readable), another one minifies css

Z
zooks, 2014-11-09
@zooks

I recommend to generate map map for css. It will show all hyphens and breaks in the browser and will not increase the size of the file itself.

F
Fadi Haj, 2014-11-10
@deleted-fdhaj

Use brackets .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question