px2rem-postcss-custom

1.1.0 • Public • Published

postcss-px2rem-custom

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

postcss px2rem.

[![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Downloads][downloads-image]][downloads-url]

使用

postcss.config.js中配置

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i px2rem-postcss-custom

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

31.6 kB

Total Files

9

Last publish

Collaborators

  • leonc