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

any way to modify to make it behave like webpack resolve.root? #46

Closed
kellyrmilligan opened this issue Jun 11, 2016 · 2 comments
Closed

Comments

@kellyrmilligan
Copy link

i'd like to specify my src directory as the root, similar to webpack's resolve.root option. currently I need to alias every top level directory in my root to use this. not bad, but not great.

@whtouche
Copy link

i would also like to be able to do this - is there a way / a how-to out there?

@tleunen
Copy link
Owner

tleunen commented Jun 14, 2016

Sorry for the delay, looks like I missed the original post.
Currently, I'm afraid this is not possible. But I'm open to accept a PR with this new functionality.

The configuration could take an array, or an object for its configuration. The array is an alias configuration, and an object could have a root property and/or an alias property (like webpack).
What do you think? Wanna work on this?

tleunen added a commit that referenced this issue Aug 14, 2016
* feat: Add support for custom root directories

Fixes #46 

BREAKING CHANGE: There's a new way to specify alias in the plugin options. See README for more info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants