Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webforms libraries to the project composer.json #47

Open
finnlewis opened this issue Apr 20, 2024 · 0 comments
Open

Add webforms libraries to the project composer.json #47

finnlewis opened this issue Apr 20, 2024 · 0 comments

Comments

@finnlewis
Copy link
Member

Our default install includes of LocalGov Microsites includes webform, but not the webform libraries.

This results in the error message on the site status page:

image

We could set this up in our project template to save devs having to do that as part of the setup.

Here's the documentation on how to add the libraries with the the composer merge plugin.

https://www.drupal.org/docs/8/modules/webform/webform-frequently-asked-questions/how-to-use-composer-to-install-libraries-for-the-webform-module

Basically:

composer require wikimedia/composer-merge-plugin

And add this to extras in composer.json:

        "merge-plugin": {
            "include": [
                "web/modules/contrib/webform/composer.libraries.json"
            ]
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant