WebPack includes entire folder (mysterious ^\.\/.*$ added) with Summernote
<p>Not sure why, but when importing Summernote into a build via WebPack, WebPack ends up pulling in the entire <code>dist</code> folder and thus complains that the fonts/images etc inside that folder are not valid JS.</p>

<p>From the webpack output, you can see that it pulls in summernotes dist js file as expected (from finding a <code>var summernote = require('summernote');</code> in a source file in my application).</p>

<pre><code>  [149] ./~/summernote/dist/summernote.js 200 kB {1} [built]
  [150] ./~/summernote/dist ^\.\/.*$ 4.93 kB {1} [built] [5 warnings]
</code></pre>

<p>What I don't understand is where chunk <code>150</code> comes from, it's a regex that will then match every item in the <code>dist</code> folder.</p>

<p>WebPack has a very basic configuration, and all other items being imported function as expected.</p>

<p>An example of one of the many warnings:</p>

<pre><code>WARNING in ./~/summernote/dist/font/summernote.ttf
Module parse failed: /&lt;project&gt;/node_modules/summernote/dist/font/summernote.ttf Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./~/summernote/dist ^\.\/.*$
</code></pre>

<p><strong>Where does chunk 150 come from, what is adding the <code>^\.\/.*$</code> requirement.</strong></p>