postcss-uint-convert
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

postcss-uint-convert

安装

npm install postcss-uint-convert --save-dev

配置 postcss.config.js

module.expoers = {
    plugins: {
        //
        // 默认配置
        // 不需要的可以设为 null
        //
        "postcss-uint-convert": {
            "px": 1,
            "vw": 3.75,
            "vh": 6.67,
            "rpx": 0.5,
            "rem": 10,
            "cm": 96 / 2.54,
            "mm": 96 / 25.4,
            "in": 96,
            "pc": 16,
            "pt": 96 / 72,
            "targets": {
                "*": "rpx",
            },
            "props": [],
            "precision": 6,
        }
    }
}

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i postcss-uint-convert

    Weekly Downloads

    0

    Version

    0.1.4

    License

    ISC

    Unpacked Size

    4.74 kB

    Total Files

    6

    Last publish

    Collaborators

    • cuathc