I am trying to use the asp.net bundling and minification feature. The issue is when i am including the jquery ui custom script in the bundle than the script is not rendering in my layout page. The code is:
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/jquery-ui-{version}.custom.js"));
bundles.Add(new StyleBundle("~/content/jquery").Include(
"~/Content/jquery-ui-{version}.custom.css"));
The above both CSS and script is not including. What am I doing wrong here ?
Once you've created the bundles, you'll need to add them to your HTML somewhere. Usually in the _Layout.cshtml, you'll need a line like this: