1 thought on “Write stats to console in alphabetical order

  1. I tried: modulesSort: 'name' and chunksSort: 'name' but neither worked (nor did using 'size'). What are the accepted values? I’m trying to order the chunks:

    webpack(config).run(function (err, stats) {
      if (err) { throw err; }
      console.log(stats.toString({
        colors: true,
        children: false,
        chunks: false,
        modules: false
      }));
    });

    Edit: OK assetsSort: 'name' did the trick.

Comments are closed.