Skip to content

TypeError: webpackPublicPath.trim is not a function when output.publicPath is a function #18

Description

@roland-reed

When the output.publicPath is a function, this plugin will throw an error saying TypeError: webpackPublicPath.trim is not a function, I found that this error was from here, it didn't handle the situation that output.publicPath is a function, so the webpackPublicPath.trim() call failed.

According to the documentation from Webpack, output.publicPath can be a string or a function.

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