Nietzsche's Preposterous Moustache
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

postcss-any2rem

0.0.4 • Public • Published

postcss-any2rem

基于 postcss-px2rem-exclude,在基础上继承了排除某些文件夹的功能,添加了根据关键字进行替换的能力

Useage

npm i postcss-any2rem -D

.postcssrc.js

module.exports = {
  'plugins': {
    'postcss-any2rem': {
      remUnit: 75,
      any: 'rpx', // rpx -> rem
      exclude: /node_modules|folder_name/i
    }
  }
}

Install

npm i postcss-any2rem

DownloadsWeekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

9.18 kB

Total Files

5

Last publish

Collaborators

  • avatar