npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

compiless

1.0.1 • Public • Published

compiLESS

Build Status NPM version

Compiles LESS files throughout a directory tree and exports them to a specific directory.

Usage

Install the package

$ npm install compiless

Then in some file that is called upon app start (should only be called once):

require("compiless")(__dirname, {
  "./src/less": "./public/css"
});

This will take any LESS files from the src/less directory, compile them, and export them to the public/css directory. So that they can be statically served.

Important notes

  • Found directories will be recursively searched.
  • If a directory does not exist, it will be created.
  • Previous files at a path WILL be overwritten

Running tests

Clone this repo

$ git clone https://github.com/ExPHAT/compiless.git

Install all of the dependencies

$ npm install

Run the tests

$ npm test

install

npm i compiless

Downloadsweekly downloads

3

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability