- πΊπΈUnited States DamienMcKenna NH, USA
FYI this repository definition worked for DOMPurify:
"cure53/dompurify": { "type": "package", "package": { "name": "cure53/dompurify", "version": "3.0.3", "type": "drupal-library", "dist": { "url": "https://github.com/cure53/dompurify/archive/3.0.3.zip", "type": "zip" } } },
- πΊπΈUnited States inversed
If it helps, I think the documentation on the anchor_link β project page is well written. It explains how to do this with
wikimedia/composer-merge-plugin
in composer or in other ways. This is an old ticket and, at some point, that plugin was not usable (maybe during one of the Drupal major release transitions) but it is working very well now. However, right now, with Drupal 10, I am using thecomposer.libraries.json
approach for both Anchor Link 3.0.0-alpha1 and Webform 6.2.2.Something else that may have be causing confusion is the issue mentioned in #41. The Colorbox documentation shown on the Status Report and the Project page is subtly incorrect. On case-sensitive operating systems like Linux, "libraries/DOMPurify/dist/purify.min.js" is going to fail because the module is actually looking for "libraries/dompurify/dist/purify.min.js". So, yes, that is an unrelated problem
- π§πͺBelgium vincent@fontaine.online
If it helps, here is how I installed DOMPurify with composer :
composer config repositories.assets composer https://asset-packagist.org composer config --unset repositories.0 composer config repositories.drupal composer https://packages.drupal.org/8 composer config --json extra.installer-types '["npm-asset", "bower-asset"]' composer config --json extra.installer-paths.web\/libraries\/dompurify '["npm-asset/dompurify"]' composer config --unset extra.installer-paths.web\/libraries\/\{\$name\} composer config --json extra.installer-paths.web\/libraries\/\{\$name\} '["type:drupal-library", "type:bower-asset", "type:npm-asset"]' composer require npm-asset/dompurify composer require bower-asset/colorbox