I've just been handed an MVC2 application and noticed that there is no bundling or minifying of the JavaScript or Stylesheets. I've used the built in bundling and minifying logic that comes out the box with MVC3+ but unfortunately this doesn't seem to be available with MVC2.I am unable to upgrade the project to a later version so my question is as follows...What are my options for bundling and minifying within an MVC2 application?
Bundling and minifying options for MVC2
javascript;asp.net;asp.net mvc;css
You can manually minify and bundle the files and add some compilation instructions to switch between the two options depending on whether you are building for release or debugIf its your own javascript/css and it changes often you can automatic the minify process into your build script.