postcss-plugin-viewport
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

postcss-plugin-viewport

用于将自定义 css 单位转换为自适应单位 如:(vw、rem)的一个 postcss 插件

params

type pluginParams = {
  unit?: string;
  whiteAttrList?: string[];
  whiteSelector?: string[];
  whiteFileList?: string[];
  designBaseVal?: number;
  unitPrecision?: number;
  mediaQuery?: boolean;
  rootVal?: number;
};

notice

传 rootVal,自动采用 rem,没有则默认使用 vw

Readme

Keywords

Package Sidebar

Install

npm i postcss-plugin-viewport

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

7.84 kB

Total Files

5

Last publish

Collaborators

  • jinghong