locked
Help with bundling and minification RRS feed

  • Question

  • User-257409430 posted

    Hi I have the following files in my solution along with the register css method. I am updating bootstrap-responsive.css in VS and saving it. However, how and when is the min version supposed to be updated? It does not seem to get updated. I have built and published and checked. Can anyone help with this?

    bootstrap-responsive.css
    bootstrap-responsive.min.css


    private static void RegisterStyleBundles(BundleCollection bundles)
    {
    bundles.Add(new StyleBundle("~/css")
    .Include("~/Content/bootstrap.css")
    .Include("~/Content/bootstrap-responsive.css")
    .Include("~/Content/site.css")
    .Include("~/Content/thebigidea.css"));
    }

    EDIT: In fact I just checked and the bootstrap-responsive.css is actually minified. So whats the point of the bootstrap-responsive.min.css file? The other file seems to all you need?

    Thanks.

    Thursday, July 18, 2013 8:28 AM

Answers

  • User-902516579 posted

    Hi,

    The best way to see what is happening here is to use the F12 Dveloper tools and watch that instead of 4 GET requests for the CSS files there is only 1.  I have not seen the *.min.css file in any of the examples I read.  Perhaps it is just s temporary file.  You can see the name of the files retrieved on the Network tab of the F12 Developer Tools.

    HTH, Benjamin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 24, 2013 6:09 AM