debug javascript in release mode with yui compressions

Posted by mickyjtwin on Stack Overflow See other posts from Stack Overflow or by mickyjtwin
Published on 2010-05-04T01:09:26Z Indexed on 2010/05/04 1:18 UTC
Read the original article Hit count: 341

In our build scripts, we are using YUI compressor to minify/compress javascript and css files. As this combines the js into one file, it needs to be referenced in the Master Layout script, e.g.

First question is what is best way to use both, so that if we are developing (in debug mode) it will reference each js file individually?

Second question, is once on production, would there be any steps/solution to debugging the javascript on the production server, i.e. conditionallly load the javascript files based on setting a "debug=true" setting in either js or .net?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript