1.0.2 • Published 5 years ago

postcss-remtopr v1.0.2

Weekly downloads
5
License
ISC
Repository
-
Last release
5 years ago

当前项目与框架项目使用的font-size不统一,将vw转换成rem

例如框架项目 html: { font-size: 100px; }

if( 当前项目使用了vw){ html: { font-size: 10vw; } const rem2prConfig = { rootSize: 10, // font-size rootType: 'vw', rootValue: 124.2, // 使用postcss-plugin-pr2rem插件配置的rootValue targetSize: // 100 引入的框架font-size }; } else {当前项目使用了 html: { font-size: 50px; }

const rem2prConfig = { rootSize: 50, // font-size rootType: 'px', targetSize: 100 // 100 引入的框架font-size }; }

而有一个框架使用了rem