Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error on content: "\<"; in CSS #1253

Open
coaxial opened this issue Jun 10, 2023 · 0 comments
Open

Parsing error on content: "\<"; in CSS #1253

coaxial opened this issue Jun 10, 2023 · 0 comments

Comments

@coaxial
Copy link

coaxial commented Jun 10, 2023

IMPORTANT: clean-css is now in a maintenance mode. PRs are still welcome, and I will try do an occasional bugfix relase.

Precheck

  • Do a quick search and make sure a bug has not yet been reported;
  • do a quick check if the bug still exists in the latest patch version;
  • finally, be nice and have fun!

Environment

  • clean-css version - npm ls clean-css: clean-css@5.3.2
  • node.js version - node -v: 16.20.0
  • operating system: Mint 20.3

Configuration options

Used through html-minifier-terser

Input CSS

.fa-less-than::before {
  content: "\<";
}

Actual output CSS

No output, but an error:

Minification error on _site/assets/css/hello.css
Parse Error: <";
}

Expected output CSS

.fa-less-than::before{content:"\<";}  // I think?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant