madebysource / lesshat

Smart LESS CSS mixins library.
lesshat.com
MIT License
2.19k stars 258 forks source link

Developer mode #153

Open johanflote opened 9 years ago

johanflote commented 9 years ago

When you are developing, it would be nice to have a mode where you only get the vanilla css properties instead of all the -webkit, -moz -yada so you can more easily toggle the property's state.

Example:

.flex(1) produces

  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;

It would be nice if you only got:

  flex: 1;
Deele commented 7 years ago

The main purpose of LessHat is to have vendor prefixes for features that are not yet defined in css spec, to make something work as intended. They are not there, if they are not needed.

Imagine situation where you develop without prefixes, you look at result and are confident, then you turn on prefixes and it is broken again. How will you proceed? Do not turn on "developer mode" and develop until it works?

Anyway, that would require to include implications in all mixins and generate another file like lesshat-novendorprefixes.less and that is quite a work and will make it harder in future to maintain them.

I don't see value high enough for this feature to counterweight work involved in implementing it.