codebased
codebased

Reputation: 7073

Use MIN.JS when Release or else .js for Debug

Folks, It could be fairly easy but I could not find easy solution so far.

I've 20-30 java script files that I want such that when the project is in release mode then it uses *.min.js otherwise use .js for debugging purpose.

How can it be done for all!

Upvotes: 1

Views: 641

Answers (1)

Chris Kooken
Chris Kooken

Reputation: 33900

You can use a tool like Squishit to compress your JS/CSS and also configure CDN's.

http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher

Upvotes: 3

Related Questions