Created
May 25, 2019 09:30
-
-
Save karthik20522/3ce81c92a53d473669192bcad85f8bdd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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