@tyndall/plugin-css
v0.0.15
Published
A build/dev plugin that wires CSS toolchain support into Tyndall bundling. It registers esbuild-compatible plugins for vanilla-extract, Sass, and CSS Modules, allowing both Bun and esbuild bundlers to resolve styles imported from application code.
Readme
@tyndall/plugin-css
A build/dev plugin that wires CSS toolchain support into Tyndall bundling. It registers esbuild-compatible plugins for vanilla-extract, Sass, and CSS Modules, allowing both Bun and esbuild bundlers to resolve styles imported from application code.
Usage
import { createCssPipelinePlugin } from "@tyndall/plugin-css";
export default {
plugins: [
createCssPipelinePlugin({
identifiers: "debug",
enableVanillaExtract: true,
enableSass: true,
enableCssModules: true,
}),
],
};Options
identifiers:"short" | "debug"(defaults to"short"in production and"debug"otherwise)enableVanillaExtract: enable@vanilla-extract/esbuild-plugin(default:true)enableSass: enableesbuild-sass-plugin(default:true)enableCssModules: enableesbuild-css-modules-plugin(default:true)
