Skip to content

Can you set different aliases per entry file? #12933

Answered by sokra
Jakobud asked this question in Q&A
Discussion options

You must be logged in to vote

Actually aliases are not unique. They are part of the resolve options which can be different per module.

You can use module.rules to assign different aliases per module:

{
  test: /abc/,
  resolve: { alias: { ... } }
}

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Jakobud
Comment options

@alexander-akait
Comment options

Comment options

You must be logged in to vote
5 replies
@Jakobud
Comment options

@Jakobud
Comment options

@sokra
Comment options

@Jakobud
Comment options

@Jakobud
Comment options

Answer selected by Jakobud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants