client-dependency

ClientDependency in umbraco doesn't include my bundles

天涯浪子 提交于 2021-01-28 19:34:32
问题 Here is where I call the BundleManager: public class MyUmbracoApplication : UmbracoApplication { protected override void OnApplicationStarted(object sender, System.EventArgs e) { //register custom routes RouteConfig.RegisterRoutes(RouteTable.Routes); CreateBundles(); base.OnApplicationStarted(sender, e); } public static void CreateBundles() { BundleManager.CreateCssBundle("css", new CssFile("~/css/rte.css")); BundleManager.CreateJsBundle("js", new JavascriptFile("/assets/js/custom.js")); } }

ClientDependency in umbraco doesn't include my bundles

我与影子孤独终老i 提交于 2021-01-28 19:20:09
问题 Here is where I call the BundleManager: public class MyUmbracoApplication : UmbracoApplication { protected override void OnApplicationStarted(object sender, System.EventArgs e) { //register custom routes RouteConfig.RegisterRoutes(RouteTable.Routes); CreateBundles(); base.OnApplicationStarted(sender, e); } public static void CreateBundles() { BundleManager.CreateCssBundle("css", new CssFile("~/css/rte.css")); BundleManager.CreateJsBundle("js", new JavascriptFile("/assets/js/custom.js")); } }