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

Is there a way to introduce alias anywhere in the build lifecycle, other than config? #46

Open
moo3 opened this issue Feb 1, 2018 · 0 comments

Comments

@moo3
Copy link

moo3 commented Feb 1, 2018

Some of my module may import a manifest which will have list of libraries that are available to be use for the app. My intent is to create a namespace so that app can assume a pattern to access the imported code.

I am looking to somehow inject alias but after reviewing ResolverFactory looks like AliasPlugin is all registered, for respective alias' and done by the time I get handle to the external code. Hence, I wonder if there is a Webpack way to apply AliasPlugin during lifecycle. If not, I will have to some script to obtain and construct the alias prior to Webpack process.

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

1 participant