title: Is it possible to have a separate node_modules folder for devDependencies?
body: <p>I've got a Node app that I'm deploying to Heroku. Their docs say it's best practice to <a href="https://devcenter.heroku.com/articles/nodejs#declare-dependencies-with-npm" rel="noreferrer">check in your <code>node_modules</code> directory</a> (i.e. <strong>don't</strong> gitignore it), for faster deploys and for dev/prod parity.</p>
  
  <p>In my <code>package.json</code>, I've got loads of <code>devDependencies</code> (mostly Grunt plugins and all their deps) and a few regular production <code>dependencies</code> like Express. Heroku only needs the production deps. I'd rather not check in all my dev deps, because they come to about 50MB.</p>
  
  <p>Is there some way to have a separate folder for you dev deps, e.g. <code>node_modules_dev</code>? If this was possible, then I could just add <code>node_modules_dev</code> to my <code>.gitignore</code>, and check in the regular production <code>node_modules</code> directory as per Heroku's advice.</p>
  
  <p>Is there any way to do this? Or can you think of another way to do what I'm trying to do?</p>