-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
[webpack-cli 4.0.0] Unknown argument: --env.source=src/examples/* #1942
Comments
@anshumanv This breaking change is not referred on https://webpack.js.org/migrate/5/ or CHANGELOG, it's worth adding it. This change is highly inconvenient because it affects CI scripts, which in our case need to work both with webpack 4 and 5:
Is there any syntax that works on both webpack-cli v3 and v4? Thanks! |
@nevcos |
@alexander-akait It doesn't work the same way:
|
If you need boolean value, you need just use |
@alexander-akait It was just an example, in my case I need to send a string URL for source maps location. |
Bug report
After migrating to webpack cli 4.0.0 i get the following error:
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
npx webpack --progress --env.source="src/examples/*"
What is the expected behavior?
Other relevant information:
webpack version: 5.0.0
Node.js version: 14.13.0
Operating System: macOS 10.15.7
Additional tools:
The text was updated successfully, but these errors were encountered: