Closed Andyspace5 closed 4 years ago
同问
同问
exclude 参数支持正则匹配把需要 exclude 的目录直接设置在这个配置项上按我的理解应该就可以了。
或者给我个最小的复现情况,我来看看
没任何问题,是我弄错了,sorry
请问怎么解决的? 我这么设置不行
plugins: [
require('postcss-plugin-px2rem')({
rootValue: 100,//默认100
exclude: /(node_modules)/, //不包括node_module
minPixelValue: 3 //设置要替换的最小像素值(3px会被转rem)。 默认 0
})
]
exclude应该怎么设置才能不影响到饿了么等ui的转化呢,试了好久好像都失效.