Устраняем ошибку отсутствия библиотек d3.js и highlight.js в друпале .8.8.5 при включении webprofiler

Опубликовано admin - пт, 08/05/2020 - 16:33

в файле drupal8/composer.json
в раздел installer-paths
"libraries/{$name}": ["type:drupal-library"],
в раздел repositories добавляем

   ,{
            "type": "package",
            "package": {
                "name": "d3/d3",
                "version": "v3.5.17",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/d3/d3/archive/v3.5.17.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "components/highlightjs",
                "version": "9.7.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/components/highlightjs/archive/9.7.0.zip",
                    "type": "zip"
                }
            }
        }
потом
composer require --prefer-dist d3/d3:3.5.* components/highlightjs:9.7.*