Skip to content

[webpack.config.js] target one doc says it cannot be multiple strings, another says it can be string[] #8265

@psnet

Description

@psnet

Have you used AI?

No

Bug Description

On page https://webpack.js.org/concepts/targets/ there is a text:

Multiple Targets
Although webpack does not support multiple strings being passed into the target property

While doc https://webpack.js.org/configuration/target/#target say it can be array of strings:

When multiple targets are passed

Which one is correct?

Link to Minimal Reproduction and step to reproduce

https://webpack.js.org/concepts/targets/
https://webpack.js.org/configuration/target/#target

Expected Behavior

Docs should say same info

Actual Behavior

Docs say different info

Environment

latest webpack5

Is this a regression?

None

Last Working Version

5.107.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions