问题描述
我们有包括具体到该页面超过50+行JavaScript ASP.net页面屈指可数。我们希望在我们的CruiseControl构建过程来缩小的JavaScript。
We have a handful of ASP.net pages that include more than 50+ lines of javascript specific to that page. We'd like to minify that javascript during our CruiseControl build process.
我们已经使用了YUI的COM pressor对COM preSS我们充分的JavaScript和CSS文件。但是,我们无法弄清楚如何做内联JavaScript。
We already use the YUI Compressor to compress our full javascript and css files. But we can't figure out how to do the Inline javascript.
是否有一个MSBuild任务通过asp.net页面旋转和压缩JavaScript?
Is there an MSBuild task to spin through asp.net pages and minify the javascript?
推荐答案
有一个有趣的博客和的NuGet 包叫做 undleMinifyInlineJsCss
来处理这个问题
There is an interesting blog and NuGet package called undleMinifyInlineJsCss
to handle this
http://weblogs.asp.net/imranbaloch/archive/2012/07/25/bundling-and-minifying-inline-css-and-js.aspx
这篇关于建立ASP.net在缩小内嵌的JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!