DOKK / manpages / debian 10 / node-less / lessc.1.en
LESSC(1) User Commands LESSC(1)

lessc - CSS

usage: lessc [option option=parameter ...] <source> [destination]

If source is set to `-' (dash or hyphen-minus), input is read from stdin.

Print help (this message) and exit.
Set include paths. Separated by `:'. Use `;' on Windows.
Output a makefile import dependency list to stdout
Disable colorized output.
Disable IE compatibility checks.
Disable JavaScript in less files
Syntax check only (lint).
Suppress output of error messages.
Force evaluation of imports.
Allow imports from insecure https hosts.
Print version number and exit.
Compress output by removing some whitespaces.
Compress output using clean-css
Pass an option to clean css, using CLI arguments from https://github.com/GoalSmashers/clean-css e.g. --clean-option=--selectors-merge-mode:ie8 and to switch on advanced use --clean-option=--advanced
Outputs a v3 sourcemap to the filename (or output filename.map)
adds this path onto the sourcemap filename and less file paths
Sets sourcemap base path, defaults to current working directory.

--source-map-less-inline puts the less files into the map instead of referencing them

puts the map (and any less files) into the output css file
the complete url and filename put in the less file
Set rootpath for url rewriting in relative imports and urls. Works with or without the relative-urls option.
re-write relative urls to the base less file.
Turn on or off strict math, where in strict mode, math
requires brackets. This option may default to on and then be removed in the future.
Allow mixed units, e.g. 1px+1em or 1px*1px which have units
that cannot be represented.

--global-var='VAR=VALUE' Defines a variable that can be referenced by the file.

--modify-var='VAR=VALUE' Modifies a variable already declared in the file.

-------------------------- Deprecated ----------------

Set the parser's optimization level. The lower the number, the less nodes it will create in the tree. This could matter for debugging, or if you want to access the individual nodes in the tree.
Outputs filename and line numbers. TYPE can be either 'comments', which will output the debug info within comments, 'mediaquery' that will output the information within a fake media query which is compatible with the SASS format, and 'all' which will do both.
Be verbose.

Report bugs to: http://github.com/less/less.js/issues
Home page: <http://lesscss.org/>

January 2019 lessc 1.6.3 (LESS Compiler) [JavaScript]