-
Notifications
You must be signed in to change notification settings - Fork 76
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
use resolve.root
instead of resolve.alias
for project folders
#49
Comments
Ah lol thanks for the heads up!! |
Ah, so with,
I think it would make the most sense to rename the |
I've been using Imports are relative to the app directory btw: Webstorm IDE is only able to find imports if I do them relative to the |
|
@AdamBrodzinski you didn't have that same issue with |
oh yea speaking of renaming to |
(@grigio @AdamBrodzinski you guys will probably find this useful)
I can't believe it, but I only now discovered Webpack's
resolve.root
config option. By setting it to the parent directory ofapp
, the aliases we made like toapp
and other folders are unnecessary, and moreover they're a bit dangerous: when I aliased autil
folder in my own project, some Node.js SHA-1 code that tries to require autil/...
somewhere failed to resolve it. Usingresolve.root
instead fixed everything.I think
alias
was really only intended to override module locations, rather than how we're using it in this project right nowThe text was updated successfully, but these errors were encountered: