If you have full control of your Apache / Ngnix configuration, a great option (in general) would be to enable the PageSpeed module, in your case with
- js-minify filter https://developers.google.com/speed/pagespeed/module/filter-js-minify
- css-rewrite filter https://developers.google.com/speed/pagespeed/module/filter-css-rewrite