c# - How can I reference a *.min.css file in an MVC4 StyleBundle? -


this question has answer here:

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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -