AzureJobs
AzureJobs copied to clipboard
Text Minifier calls to Ajax Min and replaces hex values
Repro:
-
Get a bootstrap css. I got mine from bootswatch
-
It's got selectors with hex values like this:
.glyphicon-download:before {content: "\e026";} -
Run the file through the text minifier.
-
Then find that selector, and find that the value of
contentis replaced by a square.
(Notepad)
(Notepad++)
Obviously the minifying is occuring in Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(), and nothing to do with this application, but worth noting.
Is this an issue with the minifier or with the display of a char? If so, how can we report it out?
The NuGet package is referencing Assembly AjaxMin.dll, v5.9.5229.26434
No idea. @madskristensen any clue?
It looks like an encoding issue. I'll take a look
The call to MinifyStyleSheet() shows in VS as:
So it appears the minifier actually converts the hex values to the actual unicode character.
The minified string is then saved as UTF-8.
I've assigned to @mkristensen since he is investigating.
Hi Team,
Any update on this issue, as i have encountered same issue recently.
Regards, Prithvi Pal Singh