In my libraries.yml file, I have something like this, being used to define "foo-bar" as a library that can be pulled in from various parts of the site:
foo-bar:
version: 0.0.x
js:
js/foo-dev.js: {}
This works well on my local environment, but on our production and QA environments, I would like for it to look more like this:
foo-bar:
version: 0.0.x
js:
js/foo-prod.js: {}
(The prod version will include optimizations that normally don't appear with minification alone).
Currently, we are using the sites/<site>/settings.*.php files and the config-split module to have different configurations based on the environment, but is there a way to have the foo-bar library reference the dev-friendly version on one environment, and the production version on all others?