matthew hsiung
Feb 27, 2017 · 1 min read

Great article!

As for #10, I was also dismayed about the drawbacks of using aliases but these tips solve the problems!

2. Use this to fix eslint errors in imports using webpack aliases:

3. If you’re using Webstorm, if you mark the parent directory as a ‘resource root’ then Webstorm will be able to properly figure out where you’re resolving from and then use its normal helpful features. The caveat is that you need to keep the directory and the alias the same name, but I find that it’s usually for the best to do that anyways.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store