-
Notifications
You must be signed in to change notification settings - Fork 188
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
is this possible with webpack AliasPlugin to automatically switch to a different alias when original file is deleted? #375
Comments
I think you are looking for https://webpack.js.org/configuration/resolve/#resolveroots |
It's not, the main purpose to use alias is to remove relative paths, I've folders structure below
I've ABC.ts in both folders
I've webpack configs
I've codes
now, when I delete Actually what I want is
|
Because webpack can't find your alternative path, please use |
Actually, chatGPT understands loll, words from chatGPT:
|
@latel Yeah, it is impossible, you can try |
Let's close in favor #250, anyway PR welcome |
is it possible, if both folder src/servers/overrides/server and Proto/ProtoCPP/HEAD/Proto/server have same file ABC.ts, when I delete src/servers/overrides/server/ABC.ts, webpack automatically use Proto/ProtoCPP/HEAD/Proto/server/ABC.ts
currently when I delete src/servers/overrides/server/ABC.ts, webpack throws ENOENT errors like this
The text was updated successfully, but these errors were encountered: