c# - Why dont I see folder containing the minified files in ASP.NET MVC application -


i following this link bundle , minify js , css files in asp.net mvc application.

most of suggestions available out of box.

this how code looks:

public static void registerbundles(bundlecollection bundles) {     bundles.add(new scriptbundle("~/bundles/bundleone").include(                 "~/js/jquery-3.1.1.min.js",                  "~/js/bootstrap.min.js",                  "~/js/bootstrap-suggest.js",                  "~/js/internal.js",                  "~/js/abc.js"));      bundles.add(new scriptbundle("~/bundles/bundletwo").include(                 "~/js/common.js")); } 

this how global.asax file looks:

public class mvcapplication : system.web.httpapplication {     protected void application_start()     {         arearegistration.registerallareas();         filterconfig.registerglobalfilters(globalfilters.filters);         routeconfig.registerroutes(routetable.routes);         bundleconfig.registerbundles(bundletable.bundles);         bundletable.enableoptimizations = true;     } } 

i building application debug mode set false.

<system.web>     <httpruntime targetframework="4.5" />     <customerrors mode="off" />     <compilation debug="false" />   </system.web> 

and using following syntax reference bundle

@scripts.render("~/bundles/bundleone") @scripts.render("~/bundles/bundletwo") 

while working fine, not see folder named bundles contains minified file. behavior same when publish solution.

try disabling debug mode of application. if not mistaken, in debug mode there no minification.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -