UNPKG

vite-plugin-style-modules

Version:

⭐️⭐️⭐️ Support CSS Modules, not only in xx.module.xx, but also in the custom named file. like xx.(css|less|sass|stylus)

21 lines (20 loc) 570 B
import { IPluginOptions } from './type'; /** * 可自定义文件路径的css module */ declare const vitePluginCssModule: (options?: IPluginOptions | undefined) => ({ enforce: string; name: string; configResolved(_config: any): void; transform(raw: string, id: string): Promise<{ code: any; map: { mappings: string; }; } | undefined>; } | { enforce: string; name: string; transform(css: string, id: string): Promise<string | undefined>; })[]; export default vitePluginCssModule;