-
Notifications
You must be signed in to change notification settings - Fork 29
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
customize "vue!" #22
Comments
I will work on it and tell you when it is ready. |
Here is where i register the component Create a file named define( ['vue'], function(plugin) {
return plugin;
}); Now you can import your components using this code: define(["reqV!componentA", "reqV!componentB"], function(A, B) {
}); This is not the better way to do this, but i will try to find some thing better. |
Thanks, that gives me a better understanding. Also, don't feel obliged to work on this issue, it is not a huge deal. If I have some extra time I may work on it and send a pull request. I think this project is small enough that it should not be so difficult for outsiders to make contributions. Thanks again, Wm |
Ok. Thanks ! |
I found it slightly confusing when starting to use this library because the main app.js would require both Vue (the standard library) and vue (this project which is for requiring vue).
I was wondering if one may customize the name of "vue" to make it more obvious. For example, change:
into:
So instead of using
vue!
you could usereqV!
, if you prefer.I tried this and it breaks require-vuejs. The error I see in my browser console:
Is there a reason why the name "vue!" shouldn't be customizable? Granite, I don't have much experience with require.js, and I don't know the "right" way to do things.
The text was updated successfully, but these errors were encountered: