I tried using the plugin with vue-cli which internally uses webpack5. It didn't really work. I debugged a bit and found that
StringReplacePlugin.REPLACE_OPTIONS is set to {} multiple times thus overriding settings previously set and thus later replacements do not take place. Not sure if that is now standard behaviour in webpack 5 or has to do with how vue-cli works.
I tried using the plugin with vue-cli which internally uses webpack5. It didn't really work. I debugged a bit and found that
StringReplacePlugin.REPLACE_OPTIONS is set to {} multiple times thus overriding settings previously set and thus later replacements do not take place. Not sure if that is now standard behaviour in webpack 5 or has to do with how vue-cli works.