Multiple Aliases

In this lesson, we'll deal with Multiple aliases.

We'll cover the following

Very often, multiple aliases are used for convenience, so instead of using just an @ to define your root folder, you use many. For example, let’s say we have an action and a models folder. If you create an alias for each one, and then you move the folders around, you just need to change the aliases instead of updating all the references to it in the codebase. That’s the power of module aliases: they make your codebase cleaner and more maintainable.

Let’s add a components alias in build/webpack.base.conf.js:

Get hands-on with 1200+ tech skills courses.