This may be a very basic question. I am new to LESS and would like to understand
what the dumpLineNumbers
property of the less JavaScript object does. I've added
it to the html file but cannot see any difference in the browser output or in
the browser debugging tools. How does it work?
Here are the source files I'm using:
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example Code</title>
<meta name="description" content="Example Code" />
<meta name="author" content="John Doe" />
<link rel="stylesheet/less" type="text/css" href="less/styles.less" />
<script type="text/javascript">less = { env: 'development', dumpLineNumbers: 'mediaQuery' };</script>
<script type="text/javascript" src="less-1.6.0.js"></script>
</head>
<body>
<h1>Less is Cool!</h1>
<p>Hello World!</p>
</body>
</html>
less/styles.css:
.mixin {
color: green;
}
p { .mixin; }
Even if I introduce an error in my CSS, for instance as follows where I removed a closing brace:
h1 {color:red; }
.mixin { color: green; // closing brace omitted on purpose to cause an error
p { .mixin; }
I still don't see any difference in the output when I remove the dumpLineNumbers
property.
Thanks.