Open dora-lemon opened 1 year ago
any reproduction?
/^(?!\.pife1-).*/.test('.pife1-card') // false
any reproduction?
I made a mistake, i have edited my description.
I tested it, it can achieve what you want
Maybe that you made a small mistake
If you are still stuck in this situation, you could try my fork repository: https://github.com/hemengke1997/postcss-pxtorem
Use it like:
// postcss.config.js
module.exports = {
plugins: [
require('@minko-fe/postcss-pxtorem')({
rootValue: 16,
propList: ['*'],
exclude: function (file) { return !file.includes('Register'); }
})
]
}
exclude有的时候正常有的时候不能过滤正常转为了rem,源码打印文件style里面import引入的样式,是拿不到的,请问你是咋解决的
Part of my vite.config.js:
Once and Declaration callback execution order can be like this:
In my case, i just want to include Register.vue and exclude all other files. However, if Once callback is not directly followed by corresponding Declaration callback, isExcludeFile would be true, it's not as what i expected. I have glanced at all issues, but i didn't got a similar one. I’d appreciate some help.