1.1.0 • Published 5 years ago

px2rem-postcss-custom v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

postcss-px2rem-custom

这是基于postcss与px2rem的一个扩展,旨在自定义文件的转换方案。 可以传入一个数组,分别指定不同文件使用不同的转换值。

postcss px2rem.

NPM version Build status Downloads

使用

postcss.config.js中配置

module.exports = {
  plugins: {
    'postcss-px2rem-custom': [
      {
        remUnit: 75,
        exclude: /node_modules/i
      },
      {
        remUnit: 37.5,
        include: /vant/i
      }
    ]
  }
}

License

MIT