cassette
cassette copied to clipboard
Certain CSS errors produce "Illegal Characters in Path" exception
To reproduce in the Website Project: modify 'buy.css' line 2, add line
background: transparent url(("/assets/styles/images/andrew-davey.jpg")) repeat-x;
notice the double parenthesis. Run with debug false. Observe exception in web browser.
reducing the added line to a single set of parenthesis eliminates the exception.
I think having double parenthesis is invalid CSS syntax http://www.w3.org/TR/CSS21/syndata.html#uri
Cassette could be enhance to throw an better exception, providing the file and line number of the error.
There is also scope to make Cassette simply ignore invalid CSS. It already ignores missing image file referenced from CSS (tracing a warning message only).
Is there a way I can make cassette ignore the check? I have fixed all my image paths but I am still stuck.
I'm having the same problem. But how to identify where the error is in my files .scss / .coffee? I used the package Cassette.MSBuild I posted this question on Stackoverflow: http://stackoverflow.com/questions/14757521/cassette-error-illegal-characters-in-path
Same issue, any plans to fix it?
in casstte you must check your bundles string and remove Illegal chars.
for example in this code * is Illegal char and you must remove that:
bundles.Add<ScriptBundle>("~/Scripts/Core",
new[] {
"~/Scripts/jquery-*",
...});