Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.0% dependent repos on nuget.org

nuget.org : exfsoft.web.optimization

ASP.NET WEB程序的优化功能,可以优化js/css文件。而且可以对原文件名进行加密。当你发布后,访问资源将自动压缩混淆代码。再次访问将从缓存中读取。 使用方法:Web.config中:<add namespace="ExfSoft.Web.Optimization"/>; 网页中: @Scripts.Render("~/packages/jquery") @Scripts.Build("~/Scripts/abc-{version}.js") @Scripts.Build("~/Scripts/test1.js", new { attr = "value" }) @Styles.Build("~/Content/site.css") 在使用@Scripts.Render时需要 第一步:在Global.asax代码里 protected void Application_Start() { BundleConfig.RegisterBundles(BundleTable.Bundles); //增加 } 第二步:在App_Start里增加一个文件BundleConfig.cs public class BundleConfig { internal static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/packages/jquery").Include( "~/Scripts/jQuery.{version}.js")); } }

Registry - JSON
purl: pkg:nuget/exfsoft.web.optimization
Keywords: ExfSoft, AspNet, optimization, js, css, zip, minify
License:
Latest release: over 124 years ago
First release: over 124 years ago
Dependent repositories: 1
Downloads: 11,441 total
Last synced: 20 days ago

    Loading...
    Readme
    Loading...