I have a bundling code to bundle all of my js.
bundles.Add(new ScriptBundle("~/assets/scripts").Include(
"~/Scripts/a.js",
"~/Scripts/z.js"));
After I implemented third party plugin, it will generated a js file also. Lets say it's c.js... And this c.js is not being bundled
In my page it's being rendered this way :
Any idea why this happening?
I used the Microsoft ASP.NET Web Optimization v1.1.3
This could be due to name collision between your bundle name and third party plugin js script. Try to rename your bundle. For example:
bundles.Add(new ScriptBundle("~/bundles/assets/scripts").Include(
"~/Scripts/a.js",
"~/Scripts/z.js"));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.