Skip to content

Update migration v4 to v5 guide to include env variable changes #6064

Closed
@JJPell

Description

@JJPell

This isn't mentioned in the migration guide but it would be useful to know that when migrating from v4 to v5 you need to change the format of the environment variables passed to your config from the following:

webpack --env.FOO foo --env.BAR --env.BAZ baz

To this format:

webpack --env FOO=foo BAR BAZ=baz

Otherwise you get the following error:

Error: Unknown option '--env.foo'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions