Skip to content

Can't find background: url file if it has a trailing space #237

Closed
@joshunger

Description

@joshunger

css-loader cannot find the background url file if it has a trailing space.

For example -

#trailing-space
{
  background: url(css-trailing-space.png );
}

Produces the following error -

ERROR in ./~/css-loader!./css-leading-space.css
Module not found: Error: Cannot resolve 'file' or 'directory' ./css-trailing-space.png  in /Users/junger/css-trailing-space
 @ ./~/css-loader!./css-leading-space.css 6:68-104

Leading space appears to be trimmed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions