webpack.config.js
function buildChunksSort( order ) {

  return (a, b) => order.indexOf(a.names[0]) - order.indexOf(b.names[0]);

}
function buildChunksSort( order ) {

  return (a, b) => order.indexOf(a.names[0]) - order.indexOf(b.names[0]);

}
function buildChunksSort ( order ) { return ( a , b ) => order . indexOf ( a . names [ 0 ] ) - order . indexOf ( b . names [ 0 ] ) ; }
Build sort function for chunksSortMode from array
Build sort function for chunksSortMode from array