You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}),
],
The text was updated successfully, but these errors were encountered:
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
}),
],
The text was updated successfully, but these errors were encountered: