LESSC(1)
๐ LESSC โ the Less compiler, bestie edition ๐
okay so this is lessc, the compiler for Less (Leaner Style Sheets) โ it's the CSS extension that makes writing stylesheets not feel like a punishment. โจ
๐ธ NAME ๐ธ
lessc โ Compiler for Less (Leaner Style Sheets) extension for CSS
๐ DESCRIPTION ๐
Here's the whole vibe, the usage line, copy it exactly bestie:
lessc [option option=parameter ...] <source> [destination]
If source is set to - (that's a dash, or hyphen-minus if we're being fancy) then the input gets read from stdin. yes, pipe it in, she's flexible ๐
โจ options: โจ
-h,--helpโ prints help (aka literally this message) and dips out. bye! ๐--include-path=PATHSโ sets your include paths. separate them with:. on windows,;works too ๐ช-M,--dependsโ spits out a makefile import dependency list to stdout. very build-system-core of her ๐ ๏ธ--no-colorโ turns off the colorized output. (sad, but sometimes you gotta ๐ฅฒ)--ie-compatโ enables IE8 compatibility checks. yes, IE8. we don't ask questions ๐ซ--jsโ enables inline JavaScript in less files ๐ฅ-l,--lintโ syntax check only, that's the lint mode. no output, just judgment ๐-s,--silentโ suppresses output of error messages. shhh ๐คซ--strict-importsโ forces evaluation of imports. no shortcuts, we evaluate ๐ค--insecureโ allows imports from insecure https hosts. lowkey risky bestie, that's literally the name of the flag โ ๏ธ-v,--versionโ prints the version number and exits ๐ท๏ธ--verboseโ be verbose. she's chatty, and honestly? we respect it ๐ฃ๏ธ--source-map[=FILENAME]โ outputs a v3 sourcemap to FILENAME (or if you don't give one, the output filename with.mapslapped on) ๐บ๏ธ--source-map-rootpath=Xโ adds this path onto the sourcemap filename and the less file paths ๐ฟ--source-map-basepath=Xโ sets the sourcemap base path. defaults to the current working directory ๐--source-map-include-sourceโ puts the less files into the map instead of just referencing them ๐ฆ--source-map-inlineโ puts the map (and any less files) as a base64 data uri straight into the output css file ๐งฌ--source-map-url=URLโ sets a custom URL to the map file, for thesourceMappingURLcomment in the generated CSS file ๐--source-map-no-annotationโ excludes thatsourceMappingURLcomment from the output css file ๐ซ-rp,--rootpath=URLโ sets rootpath for url rewriting in relative imports and urls. works with or without the relative-urls option ๐-ru=,--rewrite-urls=โ rewrites URLs to make them relative to the base less file. and here are the values you can hand her:allโ rewrites all URLs ๐localโ just the ones starting with a.๐กoffโ off. nothing gets rewritten ๐
-m=,--math=โ the math mode, and she has opinions:alwaysโ Less will eagerly perform math operations always ๐งฎparens-divisionโ math performed except for the division (/) operator โparens|strictโ math only performed inside parentheses ๐งทstrict-legacyโ parens required in very strict terms (this is the legacy--strict-math) ๐
-su=on|offโ allows mixed units, e.g.1px+1emor1px*1px, which have units โ๏ธ--strict-units=on|offโ that cannot be represented. (yep, this description is the other half of the-su=one above โ they're a matched set, so the mixed-units rule and the "can't be represented" caveat both apply here too) ๐งฉ--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 โ๏ธ--url-args='QUERYSTRING'โ adds params into url tokens (e.g.42,cb=42or'a=1&b=2') ๐ฃ--plugin=PLUGIN=OPTIONSโ loads a plugin. you can also omit the--plugin=if the plugin begins withless-plugin. e.g. the clean css plugin is calledless-plugin-clean-cssonce installed (npm install less-plugin-clean-css), and you use it either with--plugin=less-plugin-clean-cssor just--clean-csswith options after it, e.g.--plugin=less-plugin-clean-css="advanced"or--clean-css="advanced"๐
๐ Deprecated ๐
okay these ones are the old era. still here, still working, but likeโฆ girl, move on ๐
-sm=on|offโ legacy parens-only math. use--mathinstead ๐ต--strict-math=on|offโ also legacy math territory ๐ฐ๏ธ--line-numbers=TYPEโ outputs filename and line numbers. TYPE can be either'comments'(outputs the debug info within comments),'mediaquery'(outputs the info within a fake media query, which is compatible with the SASS format), or'all'(does both, overachiever) ๐ข-x,--compressโ compresses output by removing some whitespaces. we recommend you use a dedicated minifier likeless-plugin-clean-cssinstead ๐๏ธ
๐ฆ REPORTING BUGS ๐ฆ
found a bug? tell the devs, not me, I'm just the messenger ๐ซถ
- Report bugs to:
http://github.com/less/less.js/issues - Home page:
http://lesscss.org/
๐ SEE ALSO ๐
The full documentation for lessc is maintained as a Texinfo manual. If the info and lessc programs are properly installed at your site, then this command:
info lessc
should give you access to the complete manual. iykyk ๐โจ
and that's the whole page bestie!! this one's from lessc 3.12.2 (Less Compiler) โ dated November 2022, and it's the LESSC(1) page from User Commands. go forth and compile something iconic ๐๐
๐ฆ where this page comes from
- debian bookworm: node-less 3.13.0+dfsg-11 ยท Apache-2.0
- ubuntu noble: node-less 3.13.0+dfsg-11 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms