Customizing the minification of JavaScript in ASP.Net MVC4, allowing reserved words

added by sedanwer
11/16/2012 9:33:40 AM

0 Kicks, 127 Views

A friend of mine just posted a question on StackOverflow, regarding having reserved member names in code, which doesn’t play well with the minifier. I opened up object explorer and started to look over the API in WebGrease and the System.Web.Optimazation framework. Just took a few minutes and put together some prototype code, that would replace the member names in the code, from “delete” to “fooDelete”. And it just doesn’t change the member names, but the usages of them as well.


0 comments