艺海无涯,学无止境。欢迎一起探讨技术和人生,了解我

Umbraco 打包压缩JS与CSS

@using ClientDependency.Core.Mvc
@using ClientDependency.Core
@{
Html.RequiresJs("~/scripts/Script1.js", 1);
Html.RequiresJs("~/scripts/Script2.js", 2);

Html.RequiresCss("~/css/style.css");
}
<html>
<head>
@Html.RenderCssHere()
@Html.RenderJsHere()
</head>