Open lee011 opened 7 years ago
I got the same situation today (Visual Studio Community 2019 v16.8.3 with BuildBundlerMinifier v3.2.449).
My .css file contains a font-awesome icons like this:
.notification::before {
content: "\f0f3";
}
After minification it ends up like this:
.notification::before{content:"";}
while I expect it to be:
.notification::before{content:"\f0f3";}
My original file is UTF-8 encoded and so is the created minified file. I cannot find any external cause for this behavior.
Any ideas?
Installed product versions
Description
Some escaped characters (such as
"\ufeff"
) were unescaped unexpectedlySteps to recreate
Type some script with escaped characters, example:
Run minifier
Current behavior
After minifying, the escaped characters are unescaped
If the default encoding is not UTF-8, the minified script may contain error because of these unescaped characters, e.g. in Big5:
Expected behavior
After minifying, the escaped characters are REMAIN ESCAPED, so that the script will not contain any error when saved as any encoding.