title: How to create a minimal foundation.js file
body: <p>Just downloaded Foundation 6.2.3 in preparation for migrating a project from 5.5. There are pretty easy and clear instructions on how to create a custom <code>foundation.css</code> file to include just the components I need, but the same is not true for creating a custom <code>foundation.js</code> file. The one in the <code>dists/</code> direction contains ALL of the JavaScript code for foundation, even if I am not using a given component.</p>
  
  <p>At first I thought it was a simple concatenation of the various smaller Javascript files in the <code>plugins/</code> directory, but that doesn't seem to be the case. For example, at the top of <code>dists/foundation.js</code> is stuff that looks suspiciously like the contents of <code>plugins/foundation.core.js</code> but there are differences. For example, <code>foundation.js</code> has version 6.2.3 whereas <code>foundation.core.js</code> has version 6.2.2. Removing the leading whitespace that seems to have been inserted into <code>foundation.js</code> and then doing a diff against <code>foundation.core.js</code> yields some differences. So clearly, the components required to build <code>foundation.js</code> are not included in the default source.</p>
  
  <p>I would really like to be able to build a minimal <code>foundation.js</code> to accompany my minimal <code>foundation.css</code> file. Any help greatly appreciated. Thank you.</p>