Skip to content

css-loader incorrectly process escaped characters within the content CSS property #87

Closed
@andreypopp

Description

@andreypopp

Repro: https://gist.github.com/andreypopp/e3a8f338d21b1b4eebd2

Bootstrap has the following glyphicon class definition, bootstrap/dist/css/bootstrap.css:

.glyphicon-plus:before {
  content: "\2b";
}

which is processed by webpack into bundle.js:

.glyphicon-plus:before{content:"2b"}

So instead of the icon I see "2b" in the browser.

Note that other icons with escape codes like:

.glyphicon-pencil:before {
  content: "\270f";
}
.glyphicon-glass:before {
  content: "\e001";
}

are processed just fine.

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