Less Bundle Promise (less-bundle-promise) is a JavaScript utility designed to bundle multiple LESS files into a single output file. Primarily targeting larger projects with modular LESS structures, it offered a promise-based API for asynchronous compilation when it was actively maintained. The package, currently at version `1.0.11`, was last published approximately 4 years ago (as of 2026), indicating it is no longer actively developed or maintained. Its key differentiator at the time was the use of Promises for managing asynchronous Less compilation, which was a modern pattern for Node.js workflows. However, due to its abandonment, it lacks updates for newer Less features, Node.js versions, or modern module systems like ESM, making it largely unsuitable for contemporary projects.
npm install less-bundle-promiseVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `less-bundle-promise` to compile multiple Less files into a single output, either printed to the console or written to a specified destination file. It showcases both the basic usage and the `writeFile` option, including creation of a temporary file structure for a runnable example.
For new projects, consider modern Less build tools like Webpack with Less-loader, Rollup with appropriate plugins, or the official `less` package directly with its newer API which includes promise support.
Ensure your project uses CommonJS modules or transpile your code to CommonJS if integrating this package into an ESM environment. Alternatively, find a modern alternative that supports ESM.
Test with your specific Less files. If issues arise, manually compile problematic sections with a modern Less compiler to identify incompatibilities or migrate to a more current bundling solution.
Verify the actual runtime dependencies in your `node_modules`. Be aware that the `less` version it compiles against will be fixed to whatever was bundled or used during its development, potentially outdated. Explicitly installing `less` as a direct dependency in a compatible older version might be necessary if this tool relied on a peer dependency.
Change your import statement to `const lessBundle = require('less-bundle-promise');` to use its CommonJS interface. If your project is strictly ESM, you might need to use a wrapper or reconsider this package.Simplify your Less code to older syntax, or, preferably, migrate to a current Less compilation pipeline that supports up-to-date Less and CSS standards.
Ensure a compatible Node.js version is used. Check Less input files for syntax errors that might prevent successful compilation and subsequent Promise resolution. Consult the internal `less` package for any specific polyfill requirements if running in highly constrained environments.
No dependency data recorded yet.