-
-
Notifications
You must be signed in to change notification settings - Fork 180
uglifyjs-webpack-plugin cannot uglify any file #220
Comments
@saysmy can you create minimum reproducible test repo? |
You definitely don't want to mangle properties unless you know what you're doing. Unless the source code adheres to very strict property usage rules it almost certainly will break. Recommend that you just use the default options:
|
@ericclemmons https://github.com/saysmy/UglifyJsPluginTest this is my demo address. It cannot compress my js file. |
@kzc I tried this method, but it didn't work. webpack.config.js:
package.json:
|
@saysmy already investigate |
|
@saysmy problem in |
@evilebottnawi Thank you very much! so perfect, it works! |
@evilebottnawi What about lazy loaded chunks? When using the following config:
and load some chunks like this:
the inserted file is |
@levani can you create minimum reproducible test repo? |
@evilebottnawi run |
@levani expected behavior, Why it is happens:
Solution: just change regex to allow query params I think it is bug if webpack allow using query params in |
From slack:
I will fix it |
Done in #251 |
Released in |
this is my code:
I used es7, es6, if i use webpack.optimize.UglifyJsPlugin , it can work normally.
The text was updated successfully, but these errors were encountered: