postcss-pxtorem
postcss-pxtorem copied to clipboard
Convert pixel units to rem (root em) units using PostCSS
When project is complex enough, there will be nested views and components. The event order can be Parent-Once --> Children-Once --> Children-Declaration --> Parent-Declaration, which result the rootValue miscalculated from...
# background my h5 page is in the same project when my web page, I only use **pxtorem** in my h5 page, exclude all my web page. # the bug...
when there are tons of file, Declaration's file path will be NOT same with Once's file path,the excluded files with be convert from px to rem TOO fix issue #101
I am using version "postcss-pxtorem": "^6.0.0" and I'm having the same issue. This is part of my config in postcss.config.js. ```js 'postcss-pxtorem': { rootValue: 37.5, propList: ['*'], unitPrecision: 5, exclude:...
I get an error when I create postcss.config.js in the root directory. When I move it to the js directory I created, the error disappears. However, I am wondering if...
how to set the root value for a web project that has both mobile and PC designs? The mobile design has a size of 375px and the PC design has...
I've attached simple fix to issue I mentioned https://github.com/cuth/postcss-pxtorem/issues/93. Change exclude covert logics, when exclude option value is a function, it will not exec the following code ```js filePath.match(exclude) !==...