Skip to content

Don't use getRemainingRequest to obtain a filename for the template #8

@rjgotten

Description

@rjgotten

var filename = loaderUtils.getRemainingRequest(this);

getRemainingRequest contains the full module identifier that also includes all remaining loaders and may potentially create a lot of junk when used as the filename identifier for the view in makeRenderer.

Look at NetMatch/webpack-stache-loader for a better way to get a clean template name based on the clean resourcePath.

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