-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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 3 is missing uglify v2.x dependency which breaks the build #5092
Comments
Confirmed, manually installing uglify-js 2 seems to fix the bug. |
Fix by kingdaro worked for me. Installing v3 doesn't, though. |
confirmed |
Looks like an oversight to me. I'd file a PR to add the dependency, but I suspect the dependency should be placed under |
You can file PR there https://github.com/webpack-contrib/uglifyjs-webpack-plugin |
I could, if I knew where the dependency should go. Better to let the webpack core team decide. |
@webpack-bot move to webpack-contrib/uglifyjs-webpack-plugin uglifyjs-webpack-plugin should have uglify-js as dependency |
I've moved it to webpack-contrib/uglifyjs-webpack-plugin. |
ye,I'm install uglify v2.x that fixed bug .thks ...... ERROR in bundle-main.js from UglifyJs |
Hi, I am also still getting an error after trying out
And this is what I did in webpack.config.js:
|
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I'm getting the following error:
I'm pretty sure this is because webpack 2.6 had
"uglify-js": "^2.8.27"
as a dependency, but webpack 3.0 has only"uglifyjs-webpack-plugin": "^0.4.4"
as a dependency (which does NOT pull in uglify-js v2!)If the current behavior is a bug, please provide the steps to reproduce.
It seems to be occurring whenever I use the
-p
option from the CLI.What is the expected behavior?
Errors should not occur when using minification via uglify js.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Webpack 3.0
Node 8.1.2
MacOS 10.12.5
The text was updated successfully, but these errors were encountered: