jetheredge/SquishIt — Issue #142: combination of js files with references to code behind or other js
Author: Greeed
Created: 2012-01-30 07:30:56+00:00
State: open

Is it possible to lets say combine 5 js files when one of them has references to methods in other few files
e.g. js1.js (use method calculate from js2) js2.js (has method calculate) other tree js files are unimportant.

<%= SquishIt.Framework.Bundle.JavaScript(){

.Add(js1.js)
.Add(js2.js)
...
.Add(js.5)
.Render("~/TestJS/scripts_#.min.js")%> }

and this would work?
maybe it is possible to exclude some files from obfuscation like this:

<%= SquishIt.Framework.Bundle.JavaScript(){

.AddNoObfuscation(js1.js) because i'm not sure if the references will stay the same, will they???
.AddNoObfuscation(js2.js)
.Add(js3.js)
...
.Add(js.5)
.Render("~/TestJS/scripts_#.min.js")%> }

thanks,

Greeed