I have a single file in my application that I only have a minified version of and I would like to create a bundle for it:
bundles.Add(new ScriptBundle("~/bundles/maskedinput").Include(
"~/Scripts/jquery.maskedinput-1.3.min.js"));
The problem is that by default in debug mode, the bundling mechanism ignores .min files. I don't want to turn off this rule for all bundles, but I would like to disable it for this single bundle. Is this possible?
A quick fix is to rename the js file taking out .min. Or as per the solution in this link you can create your own ignore patterns.
这也在1.1-alpha1版本中得到修复,因此如果您更新到该版本,则在显式包含文件时不应再看到此行为。
You can either rename the file without the .min, or you can copy the file to have both a .min and one without. It's just that they're now both the same.
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.