I'm relatively new to LESS and I have a question regarding the dumpLineNumbers
property within the less JavaScript object. Despite adding it to my html file, I am unable to detect any changes in the browser output or debugging tools. Can someone explain how this property functions?
The source files I am utilizing are as follows:
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 when intentionally introducing an error in my CSS, like omitting a closing brace as shown below:
h1 {color:red; }
.mixin { color: green; // closing brace omitted on purpose to cause an error
p { .mixin; }
I still do not observe any impact on the output upon removal of the dumpLineNumbers
property.
Your insights would be greatly appreciated.