compile-less-cli
TypeScript icon, indicating that this package has built-in type declarations

1.9.1 • Public • Published

compile-less

Buy me a coffee CI npm download releases version npm version Coverage Status

All .less files are compiled into .css files.

Install

npm i compile-less-cli --save-dev

Basic Usage

const compileLess = require('compile-less-cli');

compileLess('src', {
  out: 'out',              // Output directory.
  combine: 'dist/uiw.css', // Combine CSS files.
});

Command Line

Command help:

Usage: compile-less <command> [options]

All .less files are output to a .css file.

Options:
  -v, --version              output the version number
  -d, --dir <dir-path>       Less file directory (default: "src")
  -o, --out <dir-path>       Output directory.
  -c, --combine <file-name>  Combine CSS files.
  -w, --watch                Watch and compile CSS files.
  --exclude-css              Exclude CSS file compilation.
  -r, --rm-global            Remove ":global" and ":global(className)".
  -h, --help                 display help for command

Examples:

  $ compile-less -d src -o css
  $ compile-less -d src -o css --watch
  $ compile-less -d src -o css --watch --exclude-css
  $ compile-less -d src -o out --combine out/dist.css

Development

Listen for files compiled with TypeScript

npm run start
npm run build
cd test
compile-less -d src -o out

License

Licensed under the MIT License.

Package Sidebar

Install

npm i compile-less-cli

Weekly Downloads

216

Version

1.9.1

License

MIT

Unpacked Size

35.9 kB

Total Files

19

Last publish

Collaborators

  • wcjiang
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy