We are attempting to figure out how to properly add Chosen library to our custom theme. The main reason for doing this is to be able to add the Chosen JS files, but use a custom css file where we can control the output.
After reviewing Chosen Module we found that it adds a lot of bloat that we don't necessarily need and have found it difficult to override the css that is used.
Here is what we tried, but cannot get it to use the chosen.min.css and need help to see how it can be done.
mytheme.libraries.yml file
chosenjs:
version: 1.x
css:
theme:
css/chosen.min.css: { minified:true }
js:
js/chosen.min.js: { minified:true }
The chosen.min.js has the necessary settings to get the functionality we needed.