I've read and done the steps in this, this and this post!
Still can not use the Asp.net Bundles!
In Global.asax.cs
BundleConfig.RegisterBundles(BundleTable.Bundles, Server);
and ...
public static void RegisterBundles(BundleCollection bundles, HttpServerUtility server)
{
bundles.IgnoreList.Clear();
AddDefaultIgnorePatterns(bundles.IgnoreList);
...
var scriptBundle = new ScriptBundle("~/Scripts")
.IncludeDirectory("~/Scripts", "*.js");
bundles.Add(scriptBundle);
Ignore list
private static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
{
ignoreList.Ignore("*.intellisense.js", OptimizationMode.Always);
ignoreList.Ignore("*-vsdoc.js", OptimizationMode.Always);
ignoreList.Ignore("*.debug.js", OptimizationMode.Always);
ignoreList.Ignore("underscore.js", OptimizationMode.Always);
ignoreList.Ignore("moment.js", OptimizationMode.Always);
ignoreList.Ignore("jquery-{version}.js", OptimizationMode.Always);
}
Still, files like jquery.pnotify.min.js
are not rendered!
Packages
WebGrease 1.3.0 Microsoft.AspNet.Web.Optimi... 1.1.0-Beta1