Skip to content

[Webpack Encore] always show examples with npm #15575

Closed
@Seb33300

Description

@Seb33300

Is there any reason to favor yarn over npmcommand lines in webpack encore documentation?

Some examples in the documentation are only available with yarn command and the installation example with npm is in the section "for non Symfony applications" so people may think that installing yarn is required when using Symfony.

I dont know if the documentation website supports it for command lines, but I think it could be nice to have all examples in both npm & yarn using the same tab feature we can see on some other pages (to switch between annotations, YAML, XML, ...)

image

And maybe display npm by default, because this is the tool required to install. Yarn is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues and PRs which are looking for volunteers to complete them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions