css - Line breaks in LESS -
is possible tell less ignore deleting line breaks in compiled css in order have cleaner , more readable css?
and possible tell less keep single line css rules instead of inserting line breaks between each selector, example:
less:
html,body,div,span { ... }
compiled css:
html, body, div, span { ... }
to best of knowledge, cannot done. looking source of less compiler, there options used customize behaviour (e.g. max_line_len
), none affect behaviour.
i think need either find way customize less compiler or find out alternative compiler implementation less allow configuration. either way, i'm not sure if worth trouble.
also, honest, way less uses line breaks. it's more readable , encourages apply rules in simplest possible fashion keep number of lines low.
Comments
Post a Comment