This problem could have several reasons. One of them is your UglifyJsPlugin declaration, other one is ES6. Uglify can't parse ES6, so you need to transpile your code to ES5. I can look through the project and solve the problem. I'm the talent you're looking for. Let's discuss the details!