Right now documentation proposed the following way to intent the "right" order of styles
// with chunk format [chunkhash]_[id] lower ids are potentialy should be defined before higher
const styleData = discoverProjectStyles(resolve('build'), name => {
// get ID of a chunk and use it as order hint
const match = name.match(/(\d)_c.css/);
return match && +match[1];
});
which is generally not correct, even if working in the majority of the use cases.
Right now documentation proposed the following way to intent the "right" order of styles
which is generally not correct, even if working in the majority of the use cases.