How to disable Javascript/CSS minification in ASP.NET MVC 4 Beta


Tags: javascript,css,asp.net-mvc-4,minify,asp.net-optimization

Problem :

I am just trying out ASP.NET MVC 4 but I can't figure out how to disable Javascript/CSS minification feature. Especially for development environment this will help greatly on debugging. I would imagine it would be a switch in web.config but since ASP.NET MVC 4 is still in beta stage at the moment there's really not much information out there. Would appreciate if someone can help or point to the right blog posts etc.



Solution :

In Global.asax.cs

#if DEBUG
        foreach (var bundle in BundleTable.Bundles)
        {
            bundle.Transform = new NoTransform();
        }
#endif

    CSS Howto..

    How can I vertical align my
  • to the top of this box which uses `display: flex`?
  • How to set width correctly in CSS - Need to fix bug with Safari on Mac and on iPad

    How to add padding space in /div container via CSS?

    How do I make circles within a larger circle, and text within the center of all the circles, in CSS?

    How to remove the space between list items [duplicate]

    How to insert javascript function in css link tag

    How to put bull inside css circle

    How to hide last divider in list of comments using CSS?

    How to center two columns using CSS without using a fixed width container?

    How can I change css for every DOM object in the page in SAPUI5

    How to make 3-corner-rounded triangle in CSS

    How to align items of a list CSS/jquery

    Show/Hide images based on tab selection

    How to replace borders around modal window in Fancybox 2.1.5?

    How can I center div in div in IE7

    How to animate sections in pure CSS when scrolling the page?

    Showing a time countdown progress bar

    How to position an image inside a DIV with dynamic height with pure CSS/HTML?

    How do I return the box height to original state when clicked again in JQuery?

    how to apply css to a link within a particular div only?

    How to align content to the bottom of a div?

    how to make an empty span collapse

    How to get slanted borders in CSS

    How do I insert an image in HTML so that its fills up the entire screen regardless of screen size?

    how to make an interactive uploader like gmail and facebook have?

    How to layout these elements via HTML/CSS circumventing DOMPDF's lack of float?

    How can I change the color of the last letter in an element?

    How can I change a table's column widths?

    How to lay down elements vertically from top to bottom, and then from right to left, using a clean HTML markup?

    How to align an img and a carousel next to each other, with max-width of 1000px?