debug javascript in release mode with yui compressions
- by mickyjtwin
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?