A Rollup plugin that compiles imported LESS files into CSS during bundling. Version 0.1.11 is the latest stable release (no update in several years). Designed for component-based architectures like Angular that need style encapsulation. Alternatives include rollup-plugin-postcss or rollup-plugin-styles; this plugin is lighter but limited to LESS only and lacks modern PostCSS features. It supports source maps, minification via clean-css, and optional separate CSS output file. The repository is archived (not actively maintained).
npm install rollup-plugin-less-modulesVerified import paths — ran on the pinned version, not inferred.
Configures Rollup to compile imported LESS files and output a separate CSS bundle with inline source maps.
Use an alternative plugin like rollup-plugin-postcss.
Update imports: use `import lessModules from 'rollup-plugin-less-modules';`.
Pass `sourcemap: true|false|'inline'` directly to the plugin.
Set `options.filename` relative to project root.
Run `npm install --save-dev rollup-plugin-less-modules`.
Use ES module import: `import lessModules from 'rollup-plugin-less-modules';`.
Pass `output` as a plugin option, not in Rollup's output config.