Open aranoe opened 3 years ago
The ability to disabled prefixes is actually super important, if anyone ask me. We have 50+ portals using hundreds of Vue apps written as native JS apps. They are mixed with our existing code. Maybe we have 20-30 small Vue apps running on each page.
Now we want to migrate to typescript and compile .vue files, but this prefix-thing is not helping at all. We will be forced to find, check and correct every single Vue app on every single page, to make sure that the prefix is applied everywhere. Horrible.
What problem does this feature solve?
It keeps your vue component names consistent with the web component output. When using
wc-async
for multiple web components as a build target, it should be possible to not prefix the component names.Build Script:
Example component name:
Expected Result
Actual Result
It should not add the prefix, since the file name already contains it.
What does the proposed API look like?
It might make sense to add
--unprefixed
option to the build :