Closed nicolasmoise closed 6 years ago
Putting a plugins: [new webpack.optimize.UglifyJsPlugin()] breaks the build with the following message
plugins: [new webpack.optimize.UglifyJsPlugin()]
ERROR in main.js from UglifyJs Unexpected token: name (dedupeId)
Because you cannot uglify ES2015.
This is known - you need a transpiler. See the demo:
https://github.com/webpack-contrib/polymer-webpack-loader/blob/master/demo/webpack.config.js#L40-L46
Putting a
plugins: [new webpack.optimize.UglifyJsPlugin()]
breaks the build with the following messageBecause you cannot uglify ES2015.