ajax - Exclude non minified java script from release build -


i have .net library provides ajax controls. library build visual studio 2008. ajax minifier task used auto generate minified javascript files. in debug build need original javascript files debugging javascript, in release build these have no usage.

what recommend? ignore them in release , let them blow file size? there penality in loading time? or remove them release build? how? modify project file , add condition attribute. not integrate in visual studio.

edit:

to clearify: primary question is: arguments including , excluding non minified files.

update:

just found solution nice solution auto exclusion. hers part of project file:

<itemgroup>   <embeddedjavascript include="myjavascript.debug.js" />   <embeddedresource include="myjavascript.js" /> </itemgroup> <import project="$(msbuildextensionspath)\microsoft\microsoftajax\ajaxmin.tasks" /> <target name="beforebuild">   <itemgroup condition=" '$(configuration)' != 'release' ">     <embeddedresource include="@(embeddedjavascript)" />   </itemgroup>   <ajaxmin jssourcefiles="@(embeddedjavascript)" jssourceextensionpattern="\.debug\.js$" jstargetextension=".js" /> </target> 


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -