JSPM

postcss-uint-convert

0.1.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q24070F
    • License ISC

    convert unit

    Package Exports

    • postcss-uint-convert

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-uint-convert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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,
            }
        }
    }