Skip to content
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
This repository was archived by the owner on Aug 28, 2026. It is now read-only.

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

Closed

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.

Activity

  1. alexander-akait commented on Apr 20, 2017

    @alexander-akait
    Member

    /cc @michael-ciniawsky close 😄 Just a reminder, I apologize if I'm very quick and distracting 😄

  2. michael-ciniawsky commented on Apr 20, 2017

    @michael-ciniawsky
    Contributor

    ohh.. 😟 No worries appreciated, I thought I closed all issues related to the PR(s), but I should better double check next time 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions