<p dir="auto">As per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrm007/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrm007">@mrm007</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25388804" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/143" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/143/hovercard" href="https://github.com/webpack/webpack/issues/143">#143</a>, arrays should be supported as targets in a bower.json.</p>
<p dir="auto">Hi!</p>
<p dir="auto">I would like to see support out of the box in webpack for not only <strong>npm</strong>, but also the other very popular package managers, <strong>bower</strong> and <strong>component</strong>.</p>
<p dir="auto">I'm guessing it should be a matter of adding this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new DirectoryDescriptionFilePlugin(&quot;package.json&quot;, [&quot;main&quot;]),
new DirectoryDescriptionFilePlugin(&quot;bower.json&quot;, [&quot;main&quot;]),
new DirectoryDescriptionFilePlugin(&quot;component.json&quot;, [&quot;main&quot;]),"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">DirectoryDescriptionFilePlugin</span><span class="pl-kos">(</span><span class="pl-s">"package.json"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"main"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">DirectoryDescriptionFilePlugin</span><span class="pl-kos">(</span><span class="pl-s">"bower.json"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"main"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">DirectoryDescriptionFilePlugin</span><span class="pl-kos">(</span><span class="pl-s">"component.json"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"main"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span></pre></div>
<p dir="auto">Thank you!</p>