-
Notifications
You must be signed in to change notification settings - Fork 324
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
Bug : carriage router is breaking the tokenizer #1000
Comments
congrats for the 1000th issue :) |
I wonder what would happen to source maps when getting rid of p.s. I would rather have less issues but hey let's 🎉 |
|
So we should handle it. |
To be released with 4.2.0 tomorrow. |
Our solution minifies CSS from various websites and some CSS have carriage return (
\r
) without the new line character (\n
). This character breaks the tokenizer. The only patch I found is removing all (\r) with a replace statement before applying clean-css.Environment
npm ls clean-css
: clean-css@4.1.9node -v
: v8.9.4Configuration options
Input CSS
Please note the '\r' before the '@'.
Actual output CSS
Expected output CSS
The text was updated successfully, but these errors were encountered: