I was tasked with start using ASP.NET Bundling instead of RequestReduce.
It seemed as an easy task at first, but then i ran into problems, when minifieng CSS files:
(3017,287): run-time error CSS1054: JavaScript error in expression property: Variable 'jGrowl' has not been declared: jGrowl
(3017,287): run-time error CSS1054: JavaScript error in expression property: Variable 'ignoreMe2' has not been declared: ignoreMe2
(3018,151): run-time error CSS1054: JavaScript error in expression property: Variable 'ignoreMe' has not been declared: ignoreMe
(3022,156): run-time error CSS1054: JavaScript error in expression property: Variable 'ignoreMe2' has not been declared: ignoreMe2
I found it was the jGrowl which was screwing with me. After some googleing i found: http://kenhaines.net/post/2012/06/09/WebGrease-As-seen-in-Visual-Studio-2012.aspx
There i found:
Your file appears to have undeclared JS globals in it, so the errors are expected. You should add them to the GlobalsToIgnore setting in the webgrease manifest file.
ex:
<GlobalsToIgnore>jGrowl;ignoreMe;ignoreMe2</GlobalsToIgnore>
Where is the webgrease manifest file? And how do i edit it?
Ive been googleing alot without any luck
Btw. My first question in here, so feedback on my question setup would be nice aswell :)
// Peace out