-
Notifications
You must be signed in to change notification settings - Fork 11
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
example for custom resolve
functions
#30
Comments
resolve
function exampleresolve
functions
An example could be the following: Say you wanted a resolver that would camelcase all matching files.
main.js could contain the following code:
Which would get converted into
Writing this down, I realized this is maybe not the most user-friendly way to do this, especially if you want to use the same resolver multiple times. Also, since it's been a long time since I've worked on this plugin, I might be mistaken about the way to go about this. I suggest you try it out and let me know how it works out. I have several ideas of how this use-case might be improved upon. |
Woah, would not have gotten that! I ended up getting pretty damn good results from the built-in resolvers... Still, great to see an example of how this works. Anyways, appreciate the response; a simplified/streamlined interface for implementing custom resolvers would make this package the jams. I'd be more than happy to help if/where I can be useful. |
would love to see some better documentation on using a custom
resolve
function. the docs have a pretty good primer, but an example might help the less intuitive among us. (read: “me”).The text was updated successfully, but these errors were encountered: