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

react 使用stylus,配置完无法自动转化成rem #33

Open
lyfcp opened this issue Nov 21, 2021 · 0 comments
Open

react 使用stylus,配置完无法自动转化成rem #33

lyfcp opened this issue Nov 21, 2021 · 0 comments

Comments

@lyfcp
Copy link

lyfcp commented Nov 21, 2021

react 使用stylus,配置完无法自动转化成rem,px还是px,没有转化
配置如下:
plugins: () => [
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
}),
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
postcssNormalize(),
require('postcss-px2rem-exclude')({
remUnit: 37.5 ,
exclude:/node_modules/i
}),
],

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

No branches or pull requests

1 participant