Alias JavaScript files with RequireJS in Magento
Learn how to create RequireJS path aliases to simplify module references and make dependency paths easier to maintain.
Lesson Content
It’s a bit odd to include full paths in a RequireJS module though, so it’s better to define this as a path alias. We can do this by creating a requirejs-config.js file.
Let’s create this file at:
...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.