Closed Yangqin0607 closed 4 years ago
me too ...
It seems that uglifyJS
works fine to me.
so how do you solve this problem?
Not yet, since the code delivered to the plugin had already transformed by babel
, for now we use uglifyJS
to minify the code.
@Yangqin0607 I'm going to be creating and linking to a sample project showing a simple config and demo w/ sourcemaps working. Closing this out for now, but if you're still having trouble please reopen and I'll try to help you out.
I have used webpack-parallel-uglify-plugin. It does generate *.js.map, and the source files also contains comments like "sourceMappingURL=a-614d71f532b520f2be01.js.map". But when I open the page in browsers, it was empty. Here are my config file and the picture in browser. webpack: 3.11.0 webpack-parallel-uglify-plugin: 1.1.0
If I use webpack.optimize.UglifyJsPlugin, every thing works fine.
Could you please tell me what's wrong with my config file? Thank you so much!