Answer the question
In order to leave comments, you need to log in
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
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.
Use Grunt or Gulp.
I use Grunt: one task compiles less to css (readable), another one minifies css
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question