Package Exports
- less
- less/bin/lessc
- less/lib/less
- less/lib/less/functions
- less/lib/less/tree
- less/lib/less/tree/anonymous
- less/lib/less/tree/call
- less/lib/less/tree/color
- less/lib/less/tree/dimension
- less/lib/less/tree/expression
- less/lib/less/tree/keyword
- less/lib/less/tree/operation
- less/lib/less/tree/quoted
- less/lib/less/tree/url
- less/lib/less/tree/value
- less/lib/less/tree/variable
- less/package.json
- less/test/css/css-3.css
- less/test/less-test
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (less) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
less.js
about
less.js is the next evolution of LESS, eventually, it will become LESS 2.0. less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser, as well as on the server, with node.js.
where do I get it?
Go to the Downloads section, and get the latest version:
http://github.com/cloudhead/less.js/downloads
synopsis
in node.js
var less = require('less');
less.render(".class { width: 10px * 2 }", function (e, css) {
sys.puts(css); // .class { width: 20px }
});
via the command-line (requires node)
bin/lessc style.less
in the browser
First, run make less
in the command line. It will the build the less.js file in dist/.
Then, you can use it as such:
<link rel="stylesheet/less" href="main.less" type="text/css">
<script src="less.js"></script>
To build a minified version, run make min
installation
In node:
$ npm install less