Is it possible to display the CSS that Less.js generates?
I have the following page:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Less</title>
<link rel="stylesheet" type="text/less" href="test.less">
<script type="text/javascript">
less = {
env: "development", // or "production"
async: false, // load imports async
fileAsync: false, // load imports async when in a page under
// a file protocol
poll: 1000, // when in watch mode, time in ms between polls
functions: {}, // user functions, keyed by name
dumpLineNumbers: "comments", // or "mediaQuery" or "all"
relativeUrls: false,// whether to adjust url's to be relative
// if false, url's are already relative to the
// entry less file
rootpath: ":/a.com/"// a path to add on to the start of every url
//resource
};
</script>
<script src="less-1.5.0.min.js" type="text/javascript"></script>
</head>
<body class="default">
<script>
console.log(less);
</script>
</body>
</html>
The CSS is working fine, but I want to see what the 'actual' generated CSS file looks like. I can't see anything in the object less that seems to contain it...
lessfile on your local machine to see it, and either put the generated CSS online, either keep on "compiling" it client-side.