缩小嵌入到dll中的javascript
我有一个web应用程序,我想缩小嵌入到dll中的javascript资源。 我知道使用bundle可以通过path缩小资源,但在这种情况下,没有路径可添加,因为de-javascript是在运行时添加的 在服务器控件中,在prerender函数中有以下行代码缩小嵌入到dll中的javascript,javascript,asp.net,bundle,minify,Javascript,Asp.net,Bundle,Minify,我有一个web应用程序,我想缩小嵌入到dll中的javascript资源。 我知道使用bundle可以通过path缩小资源,但在这种情况下,没有路径可添加,因为de-javascript是在运行时添加的 在服务器控件中,在prerender函数中有以下行代码 Page.ClientScript.RegisterClientScriptResource(Me.GetType(), "ViewPage.js") 在程序集信息中 <Assembly: WebResource("ViewPage
Page.ClientScript.RegisterClientScriptResource(Me.GetType(), "ViewPage.js")
在程序集信息中
<Assembly: WebResource("ViewPage.js", "text/javascript")>
它正在工作,但javascript也在工作。
我可以在运行时缩小吗?检查AArnott的JavascriptCssPackerTargets项目: 更新: 这也有助于: