Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add path blacklist #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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