Trying to understand and master Web Essentials 2012, I encountered an issue with my LESS code.
Initially, this code snippet:
@main-color: red;
.mega-warning {
font-size: 24px;
color: @main-color;
}
resulted in a compile error "LESS: Unrecognised input" causing the compilation process to halt. However, when I moved the variable declaration @main-color
inside the .mega-warning
class scope, everything worked smoothly:
.mega-warning {
@main-color: red;
font-size: 24px;
color: @main-color;
}
Can anyone help me figure out what I might be missing here?