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

BOM in compiled CSS-file breaks styles #87

Open
hubrichsl opened this issue Sep 10, 2021 · 1 comment
Open

BOM in compiled CSS-file breaks styles #87

hubrichsl opened this issue Sep 10, 2021 · 1 comment

Comments

@hubrichsl
Copy link

hubrichsl commented Sep 10, 2021

Minified CSS breaks my styles.

My observations are:

  • I enabled <outputStyle>compressed</outputStyle> for minifying the file .
  • The encoding of the output CSS-file is UTF-8 with BOM .
  • A \ufeff character appears in firebug, when checking the CSS-file. (This always happens for certain projects but not in every project.)
  • Especially when font-family styles are the first ones in the file the \ufeff character will break the font-family style. - Removing this character in browser's dev-tools fixes it immediately.
  • Manually changing the encoding to UTF-8 without BOM fixes it. But this is not possible in an automated deployment

What it should be:
There should be no BOM in the resulting css file.
It should be compressed.

When changing the default enconding to utf-8 without bom by default is not an option for you a configuration setting would be nice.

Thank you,
Chris

@hubrichsl
Copy link
Author

Workaround for other people:

When this bug breaks a style using url() put another style before it, which does not use url();

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