webpack-sort-chunks
Sorts webpack chunks by dependency
The source code here is vendored from html-webpack-plugin/lib/chunksorter.js
Install
$ npm install --save webpack-sort-chunks
Usage
const sortedChunks = // If you hold on to the Webpack compilation, pass it as the second argument// It will be faster in Webpack >= v4const sortedChunks =
API
Table of Contents
Compilation
Type: {chunkGroups: {}}
Properties
chunkGroups
{}
sortChunks
Parameters
chunks
Array<Chunk>compilation
Compilation
Returns Array<Chunk>
License
MIT © Diego Haz