postcss-pxtorem icon indicating copy to clipboard operation
postcss-pxtorem copied to clipboard

Convert pixel units to rem (root em) units using PostCSS

Results 57 postcss-pxtorem issues
Sort by recently updated
recently updated
newest added

Part of my vite.config.js: ``` import postCssPxToRem from 'postcss-pxtorem' { ..., css: { postcss: { plugins: [ postCssPxToRem({ rootValue: 16, propList: ['*'], exclude: function (file) { return file.indexOf('Register') === -1;...

It doesn't work when `react-scripts`'s version is higher than or equal to `5.0.0`

When I used version 6.0.0, an error occurred, In the vite + Vue framework, I want to use two different proportions for the UI framework But in the end, all...

my exclude use function: ![image](https://user-images.githubusercontent.com/31870384/122541336-1acad080-d05c-11eb-95cb-25b4da8bf96c.png) If the path is matched, then the previous judgment condition is true, and the execution goes to [filePath.match(exclude) !== null] it will error! ![image](https://user-images.githubusercontent.com/31870384/122541687-81e88500-d05c-11eb-911d-fc5c657e16af.png)

![image](https://user-images.githubusercontent.com/33356467/142185633-6bacc601-c5c0-4252-b6f2-a3efbaea7255.png) When the value of left is negative, the conversion result is as shown in the figure, and the number 0 should take the unit. Process on the return value...

This is my project`s package.json. ![image](https://user-images.githubusercontent.com/16595511/115897754-56e41980-a48f-11eb-9a60-8bb77fb3199a.png) The waning ![image](https://user-images.githubusercontent.com/16595511/115897872-7da25000-a48f-11eb-9c01-72dec48a9156.png) This is this postcss-pxtorem`s package.json ![image](https://user-images.githubusercontent.com/16595511/115897985-a0346900-a48f-11eb-9325-1306cf7b2d14.png) This is this postcss`s package.json ![image](https://user-images.githubusercontent.com/16595511/115898182-d8d44280-a48f-11eb-861c-5233081fd1e3.png)

by using this plugin , with webpack + antd/antd-mobile, my webpack.config.js will be : ``` require("postcss-pxtorem")({ rootValue: 37.5, propList: ["*"], minPixelValue: 2, selectorBlackList: [] }), ``` which works well by...

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.0 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@​ChALkeR). Fix boolean schemas with strictKeywords...

dependencies

when i use postcss-pxtorem as a plugin has a error for it [object Object] is not a PostCSS plugin this is my postcss.config.js module.exports = { plugins: { "postcss-preset-env":{} ,...