title: Node Express.js server-side rendering doesn't run in a production environment
body: <p>I am currently developing a <strong>React app</strong> with server-side rendering via <strong>Express.js</strong>. On development (NODE_ENV) everything runs smoothly. Once I build my app in a production environment, Node.js fails to run it and there are no verbose errors present:</p>
  
  <pre><code>/var/www/html $ node web/assets/js/server_bundle.js
  /var/www/html $ 
  </code></pre>
  
  <p>If I add three <em>console.log</em>s in the <em>server_bundle.js</em> as so:</p>
  
  <pre><code>exports.ids = [0];
  console.log(1);
  exports.modules = [
  /* 0 */
  /***/ (function(module, exports, __webpack_require__) {
  console.log(2);
  "use strict";
  
  
  if (process.env.NODE_ENV === 'production') {
    module.exports = __webpack_require__(1191);
  } else {
    module.exports = __webpack_require__(1192);
  }
  
  
  /***/ }),
  /* 1 */
  /***/ (function(module, exports, __webpack_require__) {
  console.log(3);
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
      value: true
  });
  </code></pre>
  
  <p>Only <em>console.log(1);</em> gets called:</p>
  
  <pre><code>/var/www/html $ node web/assets/js/server_bundle.js
  1
  /var/www/html $ 
  </code></pre>
  
  <p>Any ideas how could I debug this ? </p>