SomMeri / less4j

Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
145 stars 47 forks source link

Compression can be compressed some more #279

Closed SeabassNg closed 9 years ago

SeabassNg commented 9 years ago

I noticed there's still newlines on mixin outputs and on @media rules. If you guys can further compress, that'll be nice.

SomMeri commented 9 years ago

Do you have an example of what kind of mixin and @media rules combination would you like to optimize?

SeabassNg commented 9 years ago
@media (min-width: @screen-sm) and (max-width:1119px) {
    @viewport {
        width: 1120px;
        user-zoom: fixed;
    }
}

becomes....

@media (min-width:768px) and (max-width:1119px) {
  @viewport{width:1120px;user-zoom:fixed;}
.default-margin {
    @media (min-width: @screen-sm) {
        margin:@DefaultMargin;
    }
}

becomes

@media (min-width:768px) {
  .default-margin{margin:20px;}
}
SeabassNg commented 9 years ago

Any updates?

SomMeri commented 9 years ago

@SeabassNg Fixed, it will go into next release.

SeabassNg commented 9 years ago

Thanks for the update. I'm looking forward to using it.

SomMeri commented 9 years ago

Just released 1.12.0 version should have this fixed. If there is something remaining, please open a new issues.

SeabassNg commented 9 years ago

Thanks