You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if LESS output could be configured to more intelligently compress output. Here are some examples:
# Combine multiple declarations
# LESS # Preferred Output # Current Output
body { border: solid #ccc; } body{border:3px solid #ccc;} body{border:solid #ccc;}
body { border-width: 3px; } body{border-width:3px;}
# LESS # Preferred Output # Current Output
body { color: #ccc; } body{color:#ccc;cursor:pointer;} body{color:#ccc;}
body { cursor: pointer; } body{cursor:pointer;}
# Ignore overridden declarations
# LESS # Preferred Output # Current Output
body { border: 2px solid #400; } body{border:3px solid #ccc;} body{border:2px solid #400;}
body { border: 3px solid #ccc; } body{border:3px solid #ccc;}
Now imagine I have about 50 selectors repeating in each file. The problem is that compiled css is too large and to messy. There are also another use cases. For example, you may use some base stylesheet in many projects.
Hi,
It would be great if LESS output could be configured to more intelligently compress output. Here are some examples:
Now imagine I have about 50 selectors repeating in each file. The problem is that compiled css is too large and to messy. There are also another use cases. For example, you may use some base stylesheet in many projects.
Example:
base.less
style1.less
output
What you think?
The text was updated successfully, but these errors were encountered: