-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Umbraco 8.7.0 css not working wen debug false #192
Comments
Haveing this In the begin of the css file makes it now load the css ? If I remove it then it works. |
It's this url that breaks it.. It looks like it's the new url from google font that breaks it? Google fonts works: New url font: same font |
there was a similar report recently but I can't seem to find it but i think it had to do with single quotes vs double quotes in the url( statement. There's some tests for these things here https://github.com/Shazwazza/ClientDependency/blob/master/src/ClientDependency.UnitTests/CssImportStatementsTest.cs and https://github.com/Shazwazza/ClientDependency/blob/master/src/ClientDependency.UnitTests/CssMinTest.cs Would you be able to submit a test that fails to show the issue? Then it should be easy to resolve, it's probably a regex thing. |
Was there a resolution to this issue? I've just ran into it myself, the @import statement in my CSS is breaking due to the new syntax used in importing Google fonts. |
@garrybain are you using the latest CDF release, if so, steps to replicate? |
I'm using 1.9.9. I have a style.css file that starts as follows: Once enableCssMinify="true" - it compiles and minifies as so - thus not being recognise as proper CSS so it fails to style my page:
It seems to insert the Google font import above the @chartset and then breaks at the semi colons. Thanks |
Sorry I seem to have solved this and I'm not sure how, I upgraded to 1.9.9 which then threw an error as it was being used with UmbracoCMS nuget package - so I rolled back and it seems to work ok. Sorry I can't give more a technically precise answer but - if anyone has the issue in future all I can suggest is changing the semi colons in the google fonts import statement to "%3b" instead of ";" and mine has worked. Thanks |
Have an issue with css not loading when debug = true..
webconfig:
<clientDependency configSource="config\ClientDependency.config" />
client:
<clientDependency version="1" fileDependencyExtensions=".js,.css" loggerType="Umbraco.Web.CdfLogger, Umbraco.Web">
Cleared the client dependency folder in app_data..
in cshtml:
<link href="/DependencyHandler.axd?s=L2Fzc2V0cy9jc3MvdGhlbWUtbmFlc3R2ZWQuY3NzOy9BcHBfUGx1Z2lucy9DYWJhbmEuSWNvbnBpY2tlci9jc3MvaWNvbnMuY3NzOy9hc3NldHMvY3NzL3ByaW50LmNzczs&t=Css&cdv=1" rel="stylesheet">
and can open the style file...
Still works when debug = false..
Umbraco 8.7.0
The text was updated successfully, but these errors were encountered: