When you download chosen lib with composer, i.e. from https://asset-packagist.org, you get version without chosen.jquery.min.js file. Let's check if min file exists and add full version if it doesn't as we already do for css files.

CommentFileSizeAuthor
#2 check_if_minimized-2866368-2.patch683 byteszaporylie
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zaporylie created an issue. See original summary.

zaporylie’s picture

Status: Active » Needs review
FileSize
683 bytes

Here's a patch.

dpagini’s picture

Just an FYI... running into the same problem with D8 version. Have a thread for that at https://www.drupal.org/node/2851320. I know setting libraries is different between D7 & D8, but maybe these can be solved in a similar manner.

nagy.balint’s picture

We would need a review here, then it could go RTBC.

joelpittet’s picture

Instead of a file_exists check could this be a config/settings option?