Reputation: 4758
I have a very simple bundle I wish to include
@Scripts.Render("~/bundles/bjqs")
The bundle config looks like this
bundles.Add(new ScriptBundle("~/bundles/bjqs").Include(
"~/Scripts/bjqs-1.3.min.js"));
However it just never gets included.
If I manually include it like this
@Scripts.Render("~/Scripts/bjqs-1.3.min.js");
It works, but that defeats the purpose of the bundle.
Help me stack overflow, your my only hope.
Upvotes: 0
Views: 117
Reputation: 9261
Sometimes you may need to clear the IgnoreList,especially if you are including min files in your Bundle.
bundles.IgnoreList.Clear();
and then Add
bundles.Add(new ScriptBundle("~/bundles/bjqs").Include(
"~/Scripts/bjqs-1.3.min.js"));
A Good post on this behavior here
Upvotes: 2