UNPKG

vite-plugin-twstyled

Version:

Vite plugin for twstyled -- the full-featured Tailwind CSS + CSS in JS Compiler

34 lines (33 loc) 711 B
export interface Context { context: string; resourcePath: string; } export interface LocalIdentName { template: string; interpolatedName: string; } export interface Options { markup: string; style: string; } export interface GetLocalIdent { (context: Context, localIdentName: LocalIdentName, localName: string, options: Options): string; } export interface CssLoaderRule { loader: string; use: CssLoaderRule; oneOf: CssLoaderRule[]; options: { modules: { getLocalIdent: GetLocalIdent; }; }; } export interface ViteConfiguration { module: { rules: CssLoaderRule[]; }; twstyled: { extension: string; }; }