title: Minify Scripts/CSS in production mode with node.js
body: <p>I have a web app that runs in node. All the (client) Javascript/CSS files are not minified at the moment to make it easier to debug.</p>
  
  <p>When I am going into production, I would like to minify these scripts. It would be nice to have something like:</p>
  
  <p><code>node app.js -production</code></p>
  
  <p>How do I serve the minified version of my scripts without changing the script tags in my html files? There should be something like: if I am in production, use these 2 minified(combined) scripts, else use all my unminified scripts..</p>
  
  <p>Is this possible? Maybe I am thinking too complicated?</p>