c# - How can I reference a *.min.css file in an MVC4 StyleBundle? -
this question has answer here:
- bundler not including .min files 9 answers
i using kendo ui in mvc4 application. i've decided want move css , js references bundles. created bundle so:
bundles.add(new stylebundle("~/bundles/basecss").include( "~/content/css/shared/site.css", "~/content/css/plugins/jquery.jgrowl.css", "~/content/kendo/kendo.common.min.css", "~/content/kendo/kendo.blueopal.min.css"));
i reference bundle in _layout.cshtml so:
styles.render("~/bundles/basecss")
the html of page (in debug mode) renders site.css , jquery.jgrowl.css references. if rename kendo css files , remove "min" part of name , change string in bundle, works fine. why can't reference .min?
also, have explicitly disabled optimization in bundleconfig.
it uses min
needed when build debugging. when build release uses min
. putting min
in config looking min.min
.
here's post lots of info bundler not including .min files
Comments
Post a Comment