<h2 dir="auto">Feature request</h2>





<p dir="auto">Include information about <em>all</em> chunk groups in stats.  Currently <code class="notranslate">stats.toJson</code> provides details about <em>named</em> chunk groups, but there is no way (as far as I can tell) to know what the other chunk groups are.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Stats contains enough information to know all the chunk groups that exist (named and otherwise) and which chunks are in each).</p>
<p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p>
<p dir="auto">This would be helpful information for bundle analysis, for understanding things like duplicated code and how bundles change between builds.</p>
<p dir="auto"><strong>How should this be implemented in your opinion?</strong></p>
<p dir="auto">This could be implemented with a new top-level <code class="notranslate">chunkGroups</code> property on the stats object, containing all the data about the chunk groups.</p>
<p dir="auto">Alternately, a simple solution that would meet my needs would be for each chunk to list the chunk groups it is a part of (e.g. by the chunk group ids).</p>
<p dir="auto"><strong>Are you willing to work on this yourself?</strong></p>
<p dir="auto">Yes, given some guidance towards the preferred solution.</p>
<h2 dir="auto">Feature request</h2>





<p dir="auto"><strong>What is the expected behavior?</strong><br>
Want to add different-different lines at top of different output files of webpack build</p>
<p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p>
<ul dir="auto">
<li>Adding some lines(lines will be file specific) at top of specific files which needs to be there at starting of .js file for my application to work</li>
</ul>
<p dir="auto"><strong>How should this be implemented in your opinion?</strong></p>
<p dir="auto"><strong>Are you willing to work on this yourself?</strong><br>
yes</p>
<p dir="auto">BannerPlugin works in same manner but it doesn't allow adding specific lines at specific file.<br>
//Let's assume entry files are a.js , b.js and<br>
I want to append require(test1.js) at the top of a.js and require(test2.js) at the top of b.js</p>
<p dir="auto">then we have to check if(["file"]== test1.js)) which will always return false (considering ["file"] is a placeholder) so I can't append separate texts in 2 different files.</p>
<p dir="auto">I also tried with switch(using count flag for entry files considering first entry file will be built first) but during <em><strong>webpack--watch</strong></em> it fails because then webpack only builds the file having changes</p>