@mayank1513/esbuild-plugin-css-module
Version:
ESBuild plugin to handle CSS modules
14 lines (13 loc) • 650 B
TypeScript
import { Plugin } from "esbuild";
interface CSSModulePluginOptions {
/** by default name is generated without hash so that it is easier and reliable for library users to override some CSS */
generateScopedName?: string | ((className: string, filename: string, css: string) => string);
/** set skipAutoPrefixer to true to disable autoprefixer */
skipAutoPrefixer?: boolean;
/** global CSS class prefix. @defaultValue "" */
globalPrefix?: string;
/** If you want to keep .module.css files */
keepModules?: boolean;
}
declare const cssModulePlugin: (options?: CSSModulePluginOptions) => Plugin;
export = cssModulePlugin;