-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Regression - cannot define an entry's name #3531
Comments
Please create reproducible test repo, we have tests on it |
And please respect the time of another developers and use the issue template in future, thank you |
@alexander-akait I've added the missing template fields and reproducible steps above |
I see, sorry, it was a bug in our argument parser, that is why we have this regression, So I think we can implement this - @webpack/cli-team What do you think? |
I have updated the description to mention which versions this works and regressed in: The bug is not present in webpack-cli version Regressed between 3.3.12 and 4.0.0. Also updated the description to show that this worked with multiple entries before the regression was introduced. |
I think we will not restore previsoy behaviour, because it will create more bugs due bug in arguments parser, sorry, in your case better to migrate to configurations, for the latest version we will implement |
My scenario is a dynamic build system, so using configurations isn't a great option for that. But using webpack 5 is if |
But based on this decision we should update the release notes to mark this as a breaking change. |
Yeah, I agree, but looks like no one faced with it (maybe I am wrong), sometimes it is hard to describe all changes when you change args parser and we were tried to keep compatibility as possible, migration is easy, so let's just close, if someone has questions/issue feel free to open new issue or ping me here |
Anyway if sombody wants to describe it or improve - feel free to send a PR too |
Describe the bug
Before #1619 was released, we could specify an entry point's name via
<name>=<path>
syntax.webpack my_file=src/my_file_orig.js my_styles=src/my_styles_orig.scss
What is the current behavior?
Now this is no longer available even in the 4.x branch despite this not being marked as a breaking change and still part of the webpack v4 docs. webpack-cli throws an error
To Reproduce
Steps to reproduce the behavior:
Build fails with the following error:
Expected behavior
Build succeeded. And uses entry name ("myname") as output file name.
For example, this works:
Screenshots
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationAdditional context
Use-case is to have multiple entry points each with a different output name.
This regressed between 3.3.12 and 4.0.0
The text was updated successfully, but these errors were encountered: