Advanced CSS/JS Aggregation module

https://www.drupal.org/project/advagg/

(still has a Drupal 7 focus but has amazing support)

https://groups.drupal.org/node/517292