不包括.min文件我對mvc4bundler有一個奇怪的問題,它不包括擴展名為.min.js的文件。在我的BundleConfig類中,我聲明public static void RegisterBundles(BundleCollection bundles){
bundles.Add(new ScriptBundle("~/Scripts/jquery")
.Include("~/Scripts/jquery-1.8.0.js")
.Include("~/Scripts/jquery.tmpl.min.js")); }在我看來,我宣布<html>
<head>
@Scripts.Render("~/Scripts/jquery")
</head><body>test</body></html>當它呈現(xiàn)時,它只呈現(xiàn)<html>
<head>
<script src="/Scripts/jquery-1.8.0.js"></script>
</head>
<body>test</body></html>如果我將jquery.tmpl.min.js重命名為jquery.tmpl.js(并相應地更新包中的路徑),則兩個腳本都將正確呈現(xiàn)。是否有某種配置設置導致其忽略“.min.js”文件?
不包括.min文件
至尊寶的傳說
2019-07-19 15:03:37