Skip to content

Scripts: Filename changes to main.js when ouput-path parameter is added #34239

@Soean

Description

@Soean

Description

Related to webpack v5 migration: #33818.

If I add a output-path, the build files are renamed to main.js and main.asset.php. Without the parameter, the filename doesn't change.

Step-by-step reproduction instructions

wp-scripts build --entry ./src/index.js --output-path=custom

Environment info

  • WP Scripts 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Tool] WP Scripts/packages/scripts[Type] BugAn existing feature does not function as intended

    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