Mono Support WAO hates KendoUI (Closed)

Viewed 20824 time(s), 7 post(s), 11/29/2011 2:29:35 AM - by stevescotthome
11/29/2011 2:29:35 AM
50 Reputation 7 Total posts

Heads up, WAO mangles KendoUIs common stylesheets pretty badly...I think perhaps because it's trying to minify a minified file??

Anyway, I'm going to try to exclude that particular file :)

http://www.kendoui.com/

1
11/29/2011 2:43:16 AM
50 Reputation 7 Total posts

**EDIT**

Sorry, what would the proper syntax be for an exclude?

<ExcludedPaths>
                <clear/>
                <!--Example-->
                <add name="kendo.common.min.css" path="/css/KendoUI/" />
            </ExcludedPaths>

This doesn't seem to work

2
11/29/2011 3:22:53 PM
15993 Reputation 2214 Total posts

Hi,

I have reviewed the code and current version doesn't have exclude functionality for the CSS and JavaScript minifier. We can extend a minifiers to allow you to override the necessary methods and add your custom rules, is that an option for you ?

Regards

3
11/29/2011 3:25:06 PM
50 Reputation 7 Total posts

Totally! :)

It's already minified so I'd really just like to exclude it

4
11/29/2011 3:33:25 PM
15993 Reputation 2214 Total posts

We will try to provide you with a solution tomorrow. 

Regards

5
11/29/2011 3:52:44 PM
50 Reputation 7 Total posts

Awesome thanks again!

6
11/30/2011 5:07:10 PM
15993 Reputation 2214 Total posts

Hi,

I have sent you a WAO assembly via direct message. To implement your custom exclude filter you will need to inherit from the MonoSoftware.Web.WAO.Handlers.CssHandler and override the following method:

OnOptimizing(HttpContext context, CancelEventArgs e)

Here you can put your custom exclude filter and cancel the optimization for current request.

Let us know if this has helped you so we can sign off this task.

Regards

7
This is a demo site for MonoX. Please visit Mono Software for more info.