npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

compile-less-cli

1.1.5 • Public • Published

compile-less

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.
  -r, --rm-global            Remove ":global" and ":global(className)".
  -h, --help                 output usage information
 
  Examples:
 
  $ compile-less -d src -o out
  $ compile-less -d src -o out --rm-global
  $ compile-less -d src -o out --combine out/dist.css

Development

Listen for files compiled with TypeScript

npm run dev
npm run compile
cd test
compile-less -d src -o out

Keywords

none

install

npm i compile-less-cli

Downloadsweekly downloads

0

version

1.1.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability