2

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?

2

1 Answer 1

2

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 debug

If its your own javascript/css and it changes often you can automatic the minify process into your build script.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.