libsass-maven-plugin
libsass-maven-plugin copied to clipboard
BOM in compiled CSS-file breaks styles
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
Workaround for other people:
When this bug breaks a style using url() put another style before it, which does not use url();