Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Hyphens don't work with project name #25

Open
sts-ryan-holton opened this issue May 15, 2019 · 1 comment
Open

Hyphens don't work with project name #25

sts-ryan-holton opened this issue May 15, 2019 · 1 comment

Comments

@sts-ryan-holton
Copy link

Hi, when I use the Vue CLI to create a project and then try adding the p11n plugin to it, e.g: vue create vue-custom-plugin-name I then have the issue of after adding this plugin to it, I end up with having to use something like:

Vue.use(vue-custom-plugin-name);

And this is simply invalid within frameworks such as Nuxt JS. How do I prevent this plugin from doing this.

I cannot use camel-case either, so my plugins tend to just be one word because of this issue.

@d0whc3r
Copy link
Contributor

d0whc3r commented May 16, 2019

Did you tried this?

import VueCustomPluginName from 'vue-custom-plugin-name';

Vue.use(VueCustomPluginName);

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

No branches or pull requests

2 participants