I use gulp
and gulp-less
to preprocess my .less
files, and over time I've come up with some pretty complex structures that, while allowing me some real flexibility, also sometimes make debugging difficult.
Currently, I have the following output at the beginning of my main.css
file:
@media screen and (max-width: 767px) {
}
@media (min-width: 768px) {
}
@media (min-width: 768px) {
}
@media (max-width: 767px) {
}
@media (min-width: 768px) {
}
@media (min-width: 768px) {
}
@media (max-width: 767px) {
}
@media (max-width: 767px) {
}
Since all of my media queries are defined with variables and called with a mixin, it seems like it should be pretty is easy to debug....but, there is nothing in any of my files that should produce this - at least as far as I can tell - in fact there aren't even that many candidates to parse through that could potentially produce this - so I'm a little stuck.
But really, the larger question - regardless of what's causing this - is, how to debug potentially complicated less
output. Aside from sticking comments everywhere, there are no obvious tricks that I know of.
Any help?