title: Laravel webpack gives me 0++ in production
body: <p>On a project using Laravel 5.4 and the new Laravel Mix, I have a weird error when pushing live a website.</p>
  
  <p>When I'm in local, and I run the command <code>npm run dev</code> everything is working perfectly. dev is the following :</p>
  
  <p><code>"dev": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"</code></p>
  
  <p>This command execute webpack (which I am not very familiar with) and convert sass, js, coffe, etc... to vanilla CSS and JS.</p>
  
  <p>The problem is happening when live like I said when the command is <code>npm run production</code>. production is the following : </p>
  
  <p><code>"production": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"</code></p>
  
  <p>The traduction is happening correctly but when I go on the website I get the following error : </p>
  
  <p><code>Uncaught ReferenceError: Invalid left-hand side expression in postfix operation</code></p>
  
  <p>When I dig a little in the js I find this weird thing happening :</p>
  
  <p><code>for(var n=t.length;0&lt;n;0++)</code></p>
  
  <p>So I have <strong>0++</strong> that would need to be <strong>n++</strong> and when I make  research on the file, I get 115 occurence of the 0++. </p>
  
  <p>I think it is coming from webpack ? a misconfiguration or something ?</p>
  
  <p>Thanks in advance for your help !</p>