Why does postcss plugin "css-has-pseudo" perform differently in the development and production mode of Vue? #12544
Replies: 1 comment
-
In the production mode, the async sheets aren't received by The mutationObserver in browser console I created: How to get async stylesheets in Vue? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using postcss plugin
css-has-pseudo
in my Vue+Vite project. This plugin makes a polyfill to:has()
in browsers which don't support it, such as Fireforx 110.0.The plugin works when I run in the development mode. But after build, it doesn't work.
Please check my repo: https://github.com/Annie972297/css-has-test
It seems that this plugin can't process async stylesheets after build. I can't figure out why it works when running in dev mode. What's the difference between the development and production mode of Vue?
Beta Was this translation helpful? Give feedback.
All reactions