@alitajs/hd
TypeScript icon, indicating that this package has built-in type declarations

2.9.0 • Public • Published

@alitajs/hd

Hd plugin for umi.

Usage

// .umirc.ts
export default {
  plugins: ['@alitajs/hd'],
  hd: {
    px2rem: {
      selectorDoubleRemList: [/.ant-/],
    },
  },
};

hd more options:

{
  // same as config.theme, default set @hd: 2px
  "theme": {},
  "px2rem": {
    "rootValue": 100,
    "unitPrecision": 5,
    "propWhiteList": [],
    "propBlackList": [],
    "exclude": false,
    "selectorBlackList": [],
    "selectorDoubleRemList": [/.ant-/],
    "ignoreIdentifier": false,
    "replace": true,
    "mediaQuery": false,
    "minPixelValue": 0
  }
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @alitajs/hd

    Weekly Downloads

    137

    Version

    2.9.0

    License

    MIT

    Unpacked Size

    15.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • pengyh
    • ashoka_j
    • diyc
    • xiaohuoni
    • imhele
    • wangxingkang
    • shawdanon
    • cjy0208
    • sorrycc
    • hang1017
    • hammersjs