UNPKG

postcss-px-convert

Version:

A PostCSS plugin and Node tool for converting px to rem or vw, suitable for CSS, JS, Vue, React and other scenarios.

29 lines 915 B
export type UnitToConvert = 'rem' | 'vw'; export interface Px2AnyOptions { unitToConvert: UnitToConvert; rootValue?: number; viewportWidth?: number; unitPrecision?: number; minPixelValue?: number; selectorBlackList?: (string | RegExp)[]; propList?: string[]; mediaQuery?: boolean; include?: (string | RegExp)[]; exclude?: (string | RegExp)[]; landscape?: boolean; landscapeUnit?: UnitToConvert; landscapeWidth?: number; ignoreComment?: string; customPxReplace?: (px: number, converted: string, unit: UnitToConvert) => string; injectFlexibleScript?: boolean; flexibleScriptPath?: string; } export interface PostcssPxConvertOptions extends Px2AnyOptions { } export interface ViteFlexibleInjectOptions { flexibleScriptPath?: string; minFontSize?: number; maxFontSize?: number; baseWidth?: number; } //# sourceMappingURL=types.d.ts.map