@yinxulai/rollup-plugin-less
Version:
SSR 支持 typescript 支持 转换 less 语法并支持 cssModule
21 lines • 705 B
TypeScript
import Rollup from 'rollup';
import { LessOptions } from './parser/less';
declare type GenerateScopedNameFunction = (name: string, filename: string, css: string) => string;
interface CssModuleOptions {
scopeBehaviour?: 'global' | 'local';
globalModulePaths?: (RegExp | string)[];
generateScopedName?: string | GenerateScopedNameFunction;
hashPrefix?: string;
camelCase?: boolean;
root?: string;
}
interface Options {
insert?: boolean;
include?: string[];
exclude?: string[];
cssModule?: CssModuleOptions | boolean;
lessOptions?: LessOptions;
}
declare function plugin(options?: Options): Rollup.Plugin;
export default plugin;
//# sourceMappingURL=index.d.ts.map