A collection of Bun bundler plugins for compiling Less stylesheets, importing SVG as raw strings, and generating HTML templates for multi-entry builds. The current stable version is 0.0.6. Release cadence is low (few commits). Key differentiators: simple integration with Bun's build pipeline, supports source maps for Less, and allows HTML template injection with bundle outputs. Suitable for small to medium projects using Bun as the bundler.
npm install lc-bun-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use all three plugins: compile Less, inline SVG imports, and inject bundle paths into an HTML template.
Ensure you call bunPluginHtml only after awaiting Bun.build() and pass the returned outputs and your buildConfig object.
Run 'npm install less' or 'yarn add less' in your project.
Use JavaScript-based entry points and inject HTML via the plugin.
Use import { bunPluginLess } from 'lc-bun-plugin' instead of import bunPluginLess from 'lc-bun-plugin'.Install less: npm install less
Call bunPluginHtml inside the async function after awaiting Bun.build() and pass outputs and buildConfig.