Skip to content

px转rem的postcss插件,被包含的目录路径关键字才会被转换

License

Notifications You must be signed in to change notification settings

lifedever/postcss-px2rem-ks

Repository files navigation

postcss-px2rem-ks

Based on postcss-px2rem added the exclude folder option.

只有被include的文件夹名称才会被转换为rem,只要绝对路径中包含名称即可。

NPM

Useage

module.exports = {
  'plugins': {
    'postcss-px2rem-ks': {
        remUnit: 37.5,
        include: [
            'fold1',
            'fold2'
        ]
    },
  }
}

About

px转rem的postcss插件,被包含的目录路径关键字才会被转换

Resources

License

Stars

Watchers

Forks

Packages

No packages published