Skip to content

Instantly share code, notes, and snippets.

@karthik20522
Created May 25, 2019 09:30
Show Gist options
  • Save karthik20522/3ce81c92a53d473669192bcad85f8bdd to your computer and use it in GitHub Desktop.
Save karthik20522/3ce81c92a53d473669192bcad85f8bdd to your computer and use it in GitHub Desktop.
using System.Web.Optimization;
namespace ClipTheTripWeb {
public class BundleConfig {
public static void RegisterBundles(BundleCollection bundles) {
var homeBundleJs = new Bundle("~/content/js/home", new JsMinify());
homeBundleJs.Include(
"~/Content/Js/jquery.fullscreenr.js",
"~/Content/Js/jquery.autoSuggest.js",
"~/Content/Js/home.js"
);
var homeBundleCss = new Bundle("~/content/css/home", new CssMinify());
homeBundleCss.Include(
"~/Content/Css/Site.css",
"~/Content/Css/autoSuggest.css",
"~/Content/Css/tiles.css"
);
.
.
.
bundles.Add(homeBundleCss);
bundles.Add(homeBundleJs);
}
}
}
//Global.ascx
protected void Application_Start() {
AreaRegistration.RegisterAllAreas();
BundleConfig.RegisterBundles(BundleTable.Bundles);
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment