# less-bundle-promise

> A package bundler for Less

Latest version **1.0.11** (published 2022-01-03) · 0 weekly downloads

## Install

```sh
npm install less-bundle-promise
pnpm add less-bundle-promise
yarn add less-bundle-promise
bun add less-bundle-promise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2022-01-03 |
| First published | 2018-04-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | mzohaibqc |
| Maintainers | mzohaibqc |
| Keywords | less, less-bundle, less-bundle-promise, bunlde-less |

## Links

- npm: https://www.npmjs.com/package/less-bundle-promise
- Repository: https://github.com/mzohaibqc/less-bundle-promise
- Issues: https://github.com/mzohaibqc/less-bundle-promise/issues
- npm.io page: https://npm.io/package/less-bundle-promise

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.11 (latest) — 2022-01-03
- 1.0.10 — 2022-01-03
- 1.0.9 — 2022-01-03
- 1.0.8 — 2022-01-03
- 1.0.7 — 2018-08-27
- 1.0.6 — 2018-08-27
- 1.0.5 — 2018-08-27
- 1.0.4 — 2018-04-13
- 1.0.3 — 2018-04-13
- 1.0.2 — 2018-04-13
- 1.0.1 — 2018-04-12
- 1.0.0 — 2018-04-12

## README

#Less Bundle Promise (less-bundle-promise)

Bundle all of your LESS files into a single file. Useful for large projects with multiple components utilizing their own LESS files.

## Usage

```javascript
var bundle = require('less-bundle-promise');

bundle({
    src: 'main.less'
}).then(output =>{
  // do something with output less
}).catch(error => {
  console.log('Error', error);
});

// Or write to a file
bundle({
    src: 'main.less',
    dest: 'bundle.less',
    writeFile: true
}).then(output =>{
  // do something with output less
}).catch(error => {
  console.log('Error', error);
});

A `bundle.less` file will be generated with all less output
```

## Options

```typescript
interface IConfig {
    /**
     * The index.html file used to find all the *.less files and 
     * build them in order. Starts at the <!-- less-bundle-start -->
     * comment and ends at <!-- less-bundle-end -->
     */
    src: string;

    /**
     * An array of destination file paths. Once the framework 
     * is built, it will be output to these paths.
     */
    dest: Array<string>;

    /**
    * Boolean flag to indicate that if we want the compiled css into dest file or not 
    */
    writeFile?: boolean;

    /**
     * The version number used in conjunction with the license.
     */
    version?: string;

    /**
     * The path to the license file to be added to the build as a
     * comment. If a version is specified, the v.0.0.0 in the 
     * license will be replaced with the version.
     */
    license?: string;
}
```

---
_Source: https://npm.io/package/less-bundle-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
