Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we add prefix for all components? #438

Open
pbtkhoa opened this issue Jun 29, 2022 · 4 comments
Open

How do we add prefix for all components? #438

pbtkhoa opened this issue Jun 29, 2022 · 4 comments

Comments

@pbtkhoa
Copy link

pbtkhoa commented Jun 29, 2022

I'm trying to add prefixes to all components. And I can't find how to do it?
Could you somehow add it as a feature?
Thanks a lot

@kasperskov-pdk
Copy link

kasperskov-pdk commented Sep 1, 2022

Would be nice.
I tried

 resolvers: [
                        (name) => {
                            if (!name.startsWith('prefix')) {
                                console.log(name + ' is missing prefix');
                                return { name: 'prefix' + name };
                            }
                        }
                    ]

Does not work. The resolver is only for resolving the path.

@RuBaWa
Copy link

RuBaWa commented Oct 14, 2022

Do you have found a solution?

I also want to prefix all my components. For example:

WButton should resolve src/components/Button.vue

@Veseron
Copy link

Veseron commented Oct 16, 2022

The returned object also needs a "from" property.
But I can't figure out how to do it right.

@acibilous
Copy link

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants