ERROR in bundle.js from UglifyJs
<p>I've completed a project and now it's time to build it. I'm using a boilerplate project and still don't fully understand all the npm/webpack stuff going on under the hood. When running "npm start", I'm receiving the error:</p>

<pre><code>ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [bundle.js:848,29]
</code></pre>

<p>After an hour of searching the internet on this issue, I'm still unable to resolve it. From my understanding, this issue is happening because Uglify doesn't like ES2016 yet. However, the solutions I found on the internet don't seem to be working or don't make enough sense for me to implement. </p>

<p>I found this <a href="https://stackoverflow.com/questions/39064441/webpack-2-error-in-public-bundle-js-from-uglifyjs-unexpected-character">stackoverflow question</a> and changed the webpack line in my project's package.json file to:</p>

<pre><code>"webpack": "fulls1z3/webpack#v2.1.0-beta.27-harmony"
</code></pre>

<p>But this didn't work. The other suggestion of forking webpack is beyond my understanding at the moment. </p>

<p>I also tried running babel on my src folder per another suggestion but that didn't seem to do anything or I ran it incorrectly.</p>

<p>Does anyone have a nice solution to this issue? I'm pretty stuck at the moment and haven't had time to learn npm/webpack from the ground up to fully grasp what's going on.</p>

<p>Much appreciated!</p>