Skip to content

Conversation

@kisnows
Copy link

@kisnows kisnows commented May 20, 2021

add a feature, can't filter translate by path.

                pxtoviewport({
                 // import  css form node_modules/@alife/wap-union-xman will be ignore.
                  blacklistPath: ['node_modules/@alife/wap-union-xman'],
                  viewportWidth: postcss.viewportWidth || 750, // (Number) The width of the viewport.
                  viewportHeight: 1334, // (Number) The height of the viewport.
                  unitPrecision: 3, // (Number) The decimal numbers to allow the REM units to grow to.
                  viewportUnit: 'vw', // (String) Expected units.
                  selectorBlackList: [/^\.bc-/, /^\.wlkeeppx/, /^\.xman/], // (Array) The selectors to ignore and leave as px.
                  minPixelValue: 1, // (Number) Set the minimum pixel value to replace.
                  mediaQuery: true, // (Boolean) Allow px to be converted in media queries.
                })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant